depot/third_party/nixpkgs/pkgs/development/python-modules/pytest-shutil/default.nix
Default email 0d9fc34957 Project import generated by Copybara.
GitOrigin-RevId: 5ed481943351e9fd354aeb557679624224de38d5
2023-01-20 11:41:00 +01:00

70 lines
1.1 KiB
Nix

{ lib
, isPyPy
, buildPythonPackage
, fetchPypi
# build
, pytest
# runtime
, setuptools-git
, mock
, path
, execnet
, contextlib2
, 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 "path.py" "path"
'';
buildInputs = [
pytest
];
propagatedBuildInputs = [
setuptools-git
mock
path
execnet
contextlib2
termcolor
six
];
checkInputs = [
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;
};
}