about summary refs log tree commit diff
path: root/pkgs/development/python-modules/testrepository/default.nix
blob: dbc342c1c4daf60e0afab2b67b68298ad7dc6079 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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;
  };

}