python.pkgs.backports_abc: move expression
This commit is contained in:
parent
d16a1ad464
commit
232ec653ee
25
pkgs/development/python-modules/backports_abc/default.nix
Normal file
25
pkgs/development/python-modules/backports_abc/default.nix
Normal file
@ -0,0 +1,25 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, python
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "backports_abc";
|
||||
version = "0.4";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "8b3e4092ba3d541c7a2f9b7d0d9c0275b21c6a01c53a61c731eba6686939d0a5";
|
||||
};
|
||||
|
||||
checkPhase = ''
|
||||
${python.interpreter} -m unittest discover
|
||||
'';
|
||||
|
||||
meta = {
|
||||
homepage = https://github.com/cython/backports_abc;
|
||||
license = lib.licenses.psfl;
|
||||
description = "A backport of recent additions to the 'collections.abc' module";
|
||||
};
|
||||
}
|
@ -1003,25 +1003,7 @@ in {
|
||||
};
|
||||
};
|
||||
|
||||
backports_abc = buildPythonPackage rec {
|
||||
name = "backports_abc-${version}";
|
||||
version = "0.4";
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = "mirror://pypi/b/backports_abc/${name}.tar.gz";
|
||||
sha256 = "8b3e4092ba3d541c7a2f9b7d0d9c0275b21c6a01c53a61c731eba6686939d0a5";
|
||||
};
|
||||
|
||||
checkPhase = ''
|
||||
${python.interpreter} -m unittest discover
|
||||
'';
|
||||
|
||||
meta = {
|
||||
homepage = https://github.com/cython/backports_abc;
|
||||
license = licenses.psfl;
|
||||
description = "A backport of recent additions to the 'collections.abc' module";
|
||||
};
|
||||
};
|
||||
backports_abc = callPackage ../development/python-modules/backports_abc { };
|
||||
|
||||
backports_functools_lru_cache = callPackage ../development/python-modules/backports_functools_lru_cache { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user