pythonPackages.subunit: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-27 17:52:57 -04:00
parent ea4065f06a
commit e9207374e1
No known key found for this signature in database
GPG Key ID: 9ED59B0AB1EAF573
2 changed files with 22 additions and 14 deletions

View File

@ -0,0 +1,21 @@
{ buildPythonPackage
, pkgs
, testtools
, testscenarios
}:
buildPythonPackage rec {
name = pkgs.subunit.name;
src = pkgs.subunit.src;
propagatedBuildInputs = [ testtools testscenarios ];
nativeBuildInputs = [ pkgs.pkgconfig ];
buildInputs = [ pkgs.check pkgs.cppunit ];
patchPhase = ''
sed -i 's/version=VERSION/version="${pkgs.subunit.version}"/' setup.py
'';
meta = pkgs.subunit.meta;
}

View File

@ -3918,20 +3918,7 @@ in {
subdownloader = callPackage ../development/python-modules/subdownloader { }; subdownloader = callPackage ../development/python-modules/subdownloader { };
subunit = buildPythonPackage rec { subunit = callPackage ../development/python-modules/subunit { };
name = pkgs.subunit.name;
src = pkgs.subunit.src;
propagatedBuildInputs = with self; [ testtools testscenarios ];
nativeBuildInputs = [ pkgs.pkgconfig ];
buildInputs = [ pkgs.check pkgs.cppunit ];
patchPhase = ''
sed -i 's/version=VERSION/version="${pkgs.subunit.version}"/' setup.py
'';
meta = pkgs.subunit.meta;
};
sure = buildPythonPackage rec { sure = buildPythonPackage rec {
name = "sure-${version}"; name = "sure-${version}";