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";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "0.0.21";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-04-21 15:54:59 +00:00
|
|
|
sha256 = "sha256-Nor89+CQs8aIvddUol9kvDFOUSuBb4xxufn8F9w3o9k=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
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";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "testr";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://pypi.python.org/pypi/testrepository";
|
|
|
|
license = licenses.bsd2;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|