python.pkgs.backports_abc: move expression

This commit is contained in:
Frederik Rietdijk 2017-12-31 12:02:35 +01:00
parent d16a1ad464
commit 232ec653ee
2 changed files with 26 additions and 19 deletions

View 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";
};
}

View file

@ -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 { };