pythonPackages.attrs: 16.2.0 -> 17.2.0
This commit is contained in:
parent
81d2549e8b
commit
145fa7ac1f
28
pkgs/development/python-modules/attrs/default.nix
Normal file
28
pkgs/development/python-modules/attrs/default.nix
Normal file
@ -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;
|
||||||
|
};
|
||||||
|
}
|
@ -647,29 +647,7 @@ in {
|
|||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
attrs = buildPythonPackage (rec {
|
attrs = callPackage ../development/python-modules/attrs { };
|
||||||
name = "attrs-${version}";
|
|
||||||
version = "16.2.0";
|
|
||||||
src = pkgs.fetchurl {
|
|
||||||
url = "mirror://pypi/a/attrs/${name}.tar.gz";
|
|
||||||
sha256 = "136f2ec0f94ec77ff2990830feee965d608cab1e8922370e3abdded383d52001";
|
|
||||||
};
|
|
||||||
|
|
||||||
# macOS needs clang for testing
|
|
||||||
buildInputs = with self; [ pytest hypothesis zope_interface
|
|
||||||
pympler coverage ]
|
|
||||||
++ optionals (stdenv.isDarwin) [ pkgs.clang ];
|
|
||||||
|
|
||||||
checkPhase = ''
|
|
||||||
py.test
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
description = "Python attributes without boilerplate";
|
|
||||||
homepage = https://github.com/hynek/attrs;
|
|
||||||
license = licenses.mit;
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
audioread = callPackage ../development/python-modules/audioread { };
|
audioread = callPackage ../development/python-modules/audioread { };
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user