mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-30 09:33:41 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
36 lines
705 B
Nix
36 lines
705 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, testtools
|
|
, testresources
|
|
, pbr
|
|
, subunit
|
|
, fixtures
|
|
, python
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "testrepository";
|
|
version = "0.0.20";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "1ssqb07c277010i6gzzkbdd46gd9mrj0bi0i8vn560n2k2y4j93m";
|
|
};
|
|
|
|
nativeCheckInputs = [ testresources ];
|
|
buildInputs = [ pbr ];
|
|
propagatedBuildInputs = [ fixtures subunit testtools ];
|
|
|
|
checkPhase = ''
|
|
${python.interpreter} ./testr
|
|
'';
|
|
|
|
meta = with 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;
|
|
};
|
|
|
|
}
|