diff options
author | Frederik Rietdijk <freddyrietdijk@fridh.nl> | 2017-09-05 11:16:41 +0200 |
---|---|---|
committer | Frederik Rietdijk <fridh@fridh.nl> | 2017-09-06 13:54:10 +0200 |
commit | 67651d80bc8baaf09ab91fec8ea423e09107ed8f (patch) | |
tree | 216a82ca309b80298039c2038160a22e94a1de6f /pkgs/development/python-modules/attrs | |
parent | 036bafe0b94fb99ee9d1eb3d2fb902293a9f39a6 (diff) | |
download | nixlib-67651d80bc8baaf09ab91fec8ea423e09107ed8f.tar nixlib-67651d80bc8baaf09ab91fec8ea423e09107ed8f.tar.gz nixlib-67651d80bc8baaf09ab91fec8ea423e09107ed8f.tar.bz2 nixlib-67651d80bc8baaf09ab91fec8ea423e09107ed8f.tar.lz nixlib-67651d80bc8baaf09ab91fec8ea423e09107ed8f.tar.xz nixlib-67651d80bc8baaf09ab91fec8ea423e09107ed8f.tar.zst nixlib-67651d80bc8baaf09ab91fec8ea423e09107ed8f.zip |
Merge pull request #28884 from FRidh/python-fixes
Python: several fixes
Diffstat (limited to 'pkgs/development/python-modules/attrs')
-rw-r--r-- | pkgs/development/python-modules/attrs/default.nix | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/attrs/default.nix b/pkgs/development/python-modules/attrs/default.nix new file mode 100644 index 000000000000..e58bf3846dc9 --- /dev/null +++ b/pkgs/development/python-modules/attrs/default.nix @@ -0,0 +1,28 @@ +{ lib, stdenv, buildPythonPackage, fetchPypi, pytest, hypothesis, zope_interface +, pympler, coverage, six, clang }: + +buildPythonPackage rec { + name = "${pname}-${version}"; + pname = "attrs"; + version = "17.2.0"; + + src = fetchPypi { + inherit pname version; + sha256 = "04gx08ikpk26wnq22f7l42gapcvk8iz1512r927k6sadz6cinkax"; + }; + + # macOS needs clang for testing + buildInputs = [ + pytest hypothesis zope_interface pympler coverage six + ] ++ lib.optionals (stdenv.isDarwin) [ clang ]; + + checkPhase = '' + py.test + ''; + + meta = with lib; { + description = "Python attributes without boilerplate"; + homepage = https://github.com/hynek/attrs; + license = licenses.mit; + }; +} |