pythonPackages.testrepository: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-28 11:27:29 -04:00
parent f8e0efb139
commit 52492477a6
No known key found for this signature in database
GPG Key ID: 9ED59B0AB1EAF573
2 changed files with 35 additions and 22 deletions

View File

@ -0,0 +1,34 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, testtools
, testresources
, pbr
, subunit
, fixtures
, python
}:
buildPythonPackage rec {
pname = "testrepository";
version = "0.0.20";
src = fetchPypi {
inherit pname version;
sha256 = "1ssqb07c277010i6gzzkbdd46gd9mrj0bi0i8vn560n2k2y4j93m";
};
buildInputs = [ testtools testresources ];
propagatedBuildInputs = [ pbr subunit fixtures ];
checkPhase = ''
${python.interpreter} ./testr
'';
meta = with stdenv.lib; {
description = "A database of test results which can be used as part of developer workflow";
homepage = https://pypi.python.org/pypi/testrepository;
license = licenses.bsd2;
};
}

View File

@ -3951,28 +3951,7 @@ in {
testpath = callPackage ../development/python-modules/testpath { };
testrepository = buildPythonPackage rec {
name = "testrepository-${version}";
version = "0.0.20";
src = pkgs.fetchurl {
url = "mirror://pypi/t/testrepository/${name}.tar.gz";
sha256 = "1ssqb07c277010i6gzzkbdd46gd9mrj0bi0i8vn560n2k2y4j93m";
};
buildInputs = with self; [ testtools testresources ];
propagatedBuildInputs = with self; [ pbr subunit fixtures ];
checkPhase = ''
${python.interpreter} ./testr
'';
meta = {
description = "A database of test results which can be used as part of developer workflow";
homepage = https://pypi.python.org/pypi/testrepository;
license = licenses.bsd2;
};
};
testrepository = callPackage ../development/python-modules/testrepository { };
testresources = callPackage ../development/python-modules/testresources { };