2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, testtools
|
|
|
|
, testresources
|
|
|
|
, pbr
|
|
|
|
, subunit
|
|
|
|
, fixtures
|
|
|
|
, python
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "testrepository";
|
|
|
|
version = "0.0.20";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "1ssqb07c277010i6gzzkbdd46gd9mrj0bi0i8vn560n2k2y4j93m";
|
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ testresources ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ pbr ];
|
|
|
|
propagatedBuildInputs = [ fixtures subunit testtools ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
${python.interpreter} ./testr
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|