python313Packages.traits: fix build (#373698)
[NixPkgs.git] / pkgs / development / python-modules / testresources / default.nix
blob7d4710c743882eb24fe9f0a1e7c8af819b45f4c5
2   lib,
3   buildPythonPackage,
4   fetchPypi,
5   setuptools,
6   pbr,
7   fixtures,
8   testtools,
9   unittestCheckHook,
12 buildPythonPackage rec {
13   pname = "testresources";
14   version = "2.0.1";
15   pyproject = true;
17   src = fetchPypi {
18     inherit pname version;
19     sha256 = "ee9d1982154a1e212d4e4bac6b610800bfb558e4fb853572a827bc14a96e4417";
20   };
22   postPatch = ''
23     substituteInPlace testresources/tests/test_resourced_test_case.py \
24       --replace "failIf" "assertFalse"
25   '';
27   nativeBuildInputs = [ setuptools ];
29   propagatedBuildInputs = [ pbr ];
31   nativeCheckInputs = [
32     fixtures
33     testtools
34     unittestCheckHook
35   ];
37   meta = with lib; {
38     description = "Pyunit extension for managing expensive test resources";
39     homepage = "https://launchpad.net/testresources";
40     license = licenses.bsd2;
41   };