fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
52 lines
1.1 KiB
Nix
52 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
pythonOlder,
|
|
fetchFromGitHub,
|
|
setuptools,
|
|
pytest,
|
|
pytestCheckHook,
|
|
docutils,
|
|
pygments,
|
|
pytest-rerunfailures,
|
|
pytest-asyncio,
|
|
anyio,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pytest-subprocess";
|
|
version = "1.5.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "aklajnert";
|
|
repo = "pytest-subprocess";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-u9d9RhbikOyknMWs18j2efYJb9YdHsQrp31LfcbudoA=";
|
|
};
|
|
|
|
nativeBuildInputs = [ setuptools ];
|
|
|
|
buildInputs = [ pytest ];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
docutils
|
|
pygments
|
|
pytest-rerunfailures
|
|
pytest-asyncio
|
|
anyio
|
|
];
|
|
|
|
pytestFlagsArray = [ "-W ignore::DeprecationWarning" ];
|
|
|
|
meta = with lib; {
|
|
description = "A plugin to fake subprocess for pytest";
|
|
homepage = "https://github.com/aklajnert/pytest-subprocess";
|
|
changelog = "https://github.com/aklajnert/pytest-subprocess/blob/${version}/HISTORY.rst";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
};
|
|
}
|