Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / testresources / default.nix
blob724a6c36435838331a2c8967f9b6b5e2e8170eb7
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , setuptools
5 , pbr
6 , fixtures
7 , testtools
8 , unittestCheckHook
9 }:
11 buildPythonPackage rec {
12   pname = "testresources";
13   version = "2.0.1";
14   pyproject = true;
16   src = fetchPypi {
17     inherit pname version;
18     sha256 = "ee9d1982154a1e212d4e4bac6b610800bfb558e4fb853572a827bc14a96e4417";
19   };
21   postPatch = ''
22     substituteInPlace testresources/tests/test_resourced_test_case.py \
23       --replace "failIf" "assertFalse"
24   '';
26   nativeBuildInputs = [
27     setuptools
28   ];
30   propagatedBuildInputs = [
31     pbr
32   ];
34   nativeCheckInputs = [
35     fixtures
36     testtools
37     unittestCheckHook
38   ];
40   meta = with lib; {
41     description = "Pyunit extension for managing expensive test resources";
42     homepage = "https://launchpad.net/testresources";
43     license = licenses.bsd2;
44   };