depot/third_party/nixpkgs/pkgs/development/python-modules/testresources/default.nix
Default email e7ec2969af Project import generated by Copybara.
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
2024-01-13 09:15:51 +01:00

45 lines
821 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, setuptools
, pbr
, fixtures
, testtools
, unittestCheckHook
}:
buildPythonPackage rec {
pname = "testresources";
version = "2.0.1";
pyproject = true;
src = fetchPypi {
inherit pname version;
sha256 = "ee9d1982154a1e212d4e4bac6b610800bfb558e4fb853572a827bc14a96e4417";
};
postPatch = ''
substituteInPlace testresources/tests/test_resourced_test_case.py \
--replace "failIf" "assertFalse"
'';
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
pbr
];
nativeCheckInputs = [
fixtures
testtools
unittestCheckHook
];
meta = with lib; {
description = "Pyunit extension for managing expensive test resources";
homepage = "https://launchpad.net/testresources";
license = licenses.bsd2;
};
}