depot/third_party/nixpkgs/pkgs/development/python-modules/pytest-shutil/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

71 lines
1.3 KiB
Nix

{
lib,
isPyPy,
buildPythonPackage,
pytest-fixture-config,
fetchpatch,
# build-time
setuptools,
setuptools-git,
# runtime
pytest,
mock,
path,
execnet,
termcolor,
six,
# tests
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "pytest-shutil";
inherit (pytest-fixture-config) version src;
pyproject = true;
sourceRoot = "${src.name}/pytest-shutil";
# imp was removed in Python 3.12
patches = [
(fetchpatch {
name = "stop-using-imp.patch";
url = "https://build.opensuse.org/public/source/openSUSE:Factory/python-pytest-shutil/stop-using-imp.patch?rev=10";
hash = "sha256-L8tXoQ9q8o6aP3TpJY/sUVVbUd/ebw0h6de6dBj1WNY=";
stripLen = 1;
})
];
build-system = [
setuptools
setuptools-git
];
buildInputs = [ pytest ];
dependencies = [
mock
path
execnet
termcolor
six
];
nativeCheckInputs = [ pytestCheckHook ];
disabledTests =
[ "test_pretty_formatter" ]
++ lib.optionals isPyPy [
"test_run"
"test_run_integration"
];
meta = with lib; {
description = "Goodie-bag of unix shell and environment tools for py.test";
homepage = "https://github.com/manahl/pytest-plugins";
maintainers = with maintainers; [ ryansydnor ];
license = licenses.mit;
};
}