diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/attrs/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/attrs/default.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/attrs/default.nix b/nixpkgs/pkgs/development/python-modules/attrs/default.nix new file mode 100644 index 000000000000..0fe8241c2159 --- /dev/null +++ b/nixpkgs/pkgs/development/python-modules/attrs/default.nix @@ -0,0 +1,30 @@ +{ lib, stdenv, buildPythonPackage, fetchPypi, pytest, hypothesis, zope_interface +, pympler, coverage, six, clang }: + +buildPythonPackage rec { + pname = "attrs"; + version = "18.2.0"; + + src = fetchPypi { + inherit pname version; + sha256 = "10cbf6e27dbce8c30807caf056c8eb50917e0eaafe86347671b57254006c3e69"; + }; + + # macOS needs clang for testing + checkInputs = [ + pytest hypothesis zope_interface pympler coverage six + ] ++ lib.optionals (stdenv.isDarwin) [ clang ]; + + checkPhase = '' + py.test + ''; + + # To prevent infinite recursion with pytest + doCheck = false; + + meta = with lib; { + description = "Python attributes without boilerplate"; + homepage = https://github.com/hynek/attrs; + license = licenses.mit; + }; +} |