summary refs log tree commit diff
path: root/pkgs/development/python-modules/black/default.nix
blob: f48310ceebc650a82a5dfa7eaaf7cbd8a29600c2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{ stdenv, buildPythonPackage, fetchPypi, pythonOlder, attrs, click }:

buildPythonPackage rec {
  pname = "black";
  version = "18.4a0";

  disabled = pythonOlder "3.6";

  src = fetchPypi {
    inherit pname version;
    sha256 = "04dffr4wmzs4vf2xj0cxp03hv04x0kk06qyzx6jjrp1mq0z3n2rr";
  };

  propagatedBuildInputs = [ attrs click ];

  meta = with stdenv.lib; {
    description = "The uncompromising Python code formatter";
    homepage    = https://github.com/ambv/black;
    license     = licenses.mit;
    maintainers = with maintainers; [ sveitser ];
  };

}