nixpkgs-suyu/pkgs/development/python-modules/pytest-shutil/default.nix
Guillaume Girol 33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00

69 lines
1.1 KiB
Nix

{ lib
, isPyPy
, buildPythonPackage
, fetchPypi
# build
, pytest
# runtime
, setuptools-git
, mock
, path
, execnet
, termcolor
, six
# tests
, cmdline
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "pytest-shutil";
version = "1.7.0";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-2BZSYd5251CFBcNB2UwCsRPclj8nRUOrynTb+r0CEmE=";
};
postPatch = ''
substituteInPlace setup.py \
--replace "contextlib2" 'contextlib2;python_version<"3"' \
--replace "path.py" "path"
'';
buildInputs = [
pytest
];
propagatedBuildInputs = [
setuptools-git
mock
path
execnet
termcolor
six
];
nativeCheckInputs = [
cmdline
pytestCheckHook
];
disabledTests = [
"test_pretty_formatter"
] ++ lib.optionals isPyPy [
"test_run"
"test_run_integration"
];
meta = with lib; {
description = "A 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;
};
}