mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-21 03:25:36 +00:00
pythonPackages.testrepository: refactor move to python-modules
This commit is contained in:
parent
f8e0efb139
commit
52492477a6
34
pkgs/development/python-modules/testrepository/default.nix
Normal file
34
pkgs/development/python-modules/testrepository/default.nix
Normal 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;
|
||||
};
|
||||
|
||||
}
|
@ -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 { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user