2023-01-20 10:41:00 +00:00
|
|
|
{ lib
|
|
|
|
, isPyPy
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
|
|
|
|
# build
|
|
|
|
, pytest
|
|
|
|
|
|
|
|
# runtime
|
|
|
|
, setuptools-git
|
|
|
|
, mock
|
|
|
|
, path
|
|
|
|
, execnet
|
|
|
|
, termcolor
|
|
|
|
, six
|
|
|
|
|
|
|
|
# tests
|
|
|
|
, cmdline
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-shutil";
|
|
|
|
version = "1.7.0";
|
2023-01-20 10:41:00 +00:00
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-01-20 10:41:00 +00:00
|
|
|
hash = "sha256-2BZSYd5251CFBcNB2UwCsRPclj8nRUOrynTb+r0CEmE=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
2023-02-02 18:25:31 +00:00
|
|
|
--replace "contextlib2" 'contextlib2;python_version<"3"' \
|
2022-04-27 09:35:20 +00:00
|
|
|
--replace "path.py" "path"
|
|
|
|
'';
|
|
|
|
|
2023-01-20 10:41:00 +00:00
|
|
|
buildInputs = [
|
|
|
|
pytest
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-01-20 10:41:00 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
setuptools-git
|
|
|
|
mock
|
|
|
|
path
|
|
|
|
execnet
|
|
|
|
termcolor
|
|
|
|
six
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2023-01-20 10:41:00 +00:00
|
|
|
cmdline
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
"test_pretty_formatter"
|
|
|
|
] ++ lib.optionals isPyPy [
|
|
|
|
"test_run"
|
|
|
|
"test_run_integration"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|