1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 testtools,
6 testresources,
7 pbr,
8 subunit,
9 fixtures,
10 python,
11}:
12
13buildPythonPackage rec {
14 pname = "testrepository";
15 version = "0.0.21";
16 format = "setuptools";
17
18 src = fetchPypi {
19 inherit pname version;
20 hash = "sha256-Nor89+CQs8aIvddUol9kvDFOUSuBb4xxufn8F9w3o9k=";
21 };
22
23 nativeCheckInputs = [ testresources ];
24 buildInputs = [ pbr ];
25 propagatedBuildInputs = [
26 fixtures
27 subunit
28 testtools
29 ];
30
31 checkPhase = ''
32 ${python.interpreter} ./testr
33 '';
34
35 meta = with lib; {
36 description = "Database of test results which can be used as part of developer workflow";
37 mainProgram = "testr";
38 homepage = "https://pypi.python.org/pypi/testrepository";
39 license = licenses.bsd2;
40 };
41}