aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/python-modules/black-macchiato/default.nix
blob: 130d07d61ff46b908088eebd5bbf1bb9aa00539a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{ stdenv,
  buildPythonPackage,
  fetchFromGitHub,
  pythonOlder,
  pytestCheckHook,
  black
}:

buildPythonPackage rec {
  pname = "black-macchiato";
  version = "1.3.0";

  disabled = pythonOlder "3.6";

  src = fetchFromGitHub {
    owner  = "wbolster";
    repo   = pname;
    rev    = version;
    sha256 = "0lc9w50nlbmlzj44krk7kxcia202fhybbnwfh77xixlc7vb4rayl";
  };

  propagatedBuildInputs = [ black ];

  checkInputs = [ pytestCheckHook black ];

  pythonImportsCheck = [ "black" ];

  meta = with stdenv.lib; {
    description = "This is a small utility built on top of the black Python code formatter to enable formatting of partial files";
    homepage    = "https://github.com/wbolster/black-macchiato";
    license     = licenses.bsd3;
    maintainers = with maintainers; [ jperras ];
  };

}