summary refs log tree commit diff
path: root/pkgs/development/python-modules/testresources/default.nix
blob: ce00b17b177376194acd8d7cac12eefce71a72cd (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
{ lib, buildPythonPackage, fetchPypi, python
, pbr, fixtures, testtools }:

buildPythonPackage rec {
  pname = "testresources";
  version = "2.0.1";

  src = fetchPypi {
    inherit pname version;
    sha256 = "ee9d1982154a1e212d4e4bac6b610800bfb558e4fb853572a827bc14a96e4417";
  };

  propagatedBuildInputs = [ pbr ];

  checkInputs = [ fixtures testtools ];

  checkPhase = ''
    ${python.interpreter} -m testtools.run discover
  '';

  meta = with lib; {
    description = "Pyunit extension for managing expensive test resources";
    homepage = https://launchpad.net/testresources;
    license = licenses.bsd2;
  };
}