summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/testresources/default.nix
blob: cb8d8458141c1ea2653460a59bda468bebf879ca (plain)
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  pbr,
  fixtures,
  testtools,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "testresources";
  version = "2.0.2";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "testing-cabal";
    repo = "testresources";
    tag = version;
    hash = "sha256-cdZObOgBOUxYg4IGUUMb6arlpb6NTU7w+EW700LKH4Y=";
  };

  build-system = [
    setuptools
    pbr
  ];

  dependencies = [
    pbr
  ];

  nativeCheckInputs = [
    fixtures
    testtools
    pytestCheckHook
  ];

  env.PBR_VERSION = version;

  meta = {
    description = "Pyunit extension for managing expensive test resources";
    homepage = "https://launchpad.net/testresources";
    license = with lib.licenses; [
      asl20 # or
      bsd3
    ];
    maintainers = with lib.maintainers; [ nickcao ];
  };
}