perlPackages.NetAsyncWebSocket: 0.13 -> 0.14 (#352432)
[NixPkgs.git] / pkgs / development / python-modules / black-macchiato / default.nix
blobda26ce0ed3a8bc38a62991c4548f320276eef314
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   pythonOlder,
6   pytestCheckHook,
7   black,
8 }:
10 buildPythonPackage rec {
11   pname = "black-macchiato";
12   version = "1.3.0";
13   format = "setuptools";
15   disabled = pythonOlder "3.6";
17   src = fetchFromGitHub {
18     owner = "wbolster";
19     repo = pname;
20     rev = version;
21     sha256 = "0lc9w50nlbmlzj44krk7kxcia202fhybbnwfh77xixlc7vb4rayl";
22   };
24   propagatedBuildInputs = [ black ];
26   nativeCheckInputs = [
27     pytestCheckHook
28     black
29   ];
31   pythonImportsCheck = [ "black" ];
33   meta = with lib; {
34     description = "This is a small utility built on top of the black Python code formatter to enable formatting of partial files";
35     mainProgram = "black-macchiato";
36     homepage = "https://github.com/wbolster/black-macchiato";
37     license = licenses.bsd3;
38     maintainers = with maintainers; [ jperras ];
39   };