depot/third_party/nixpkgs/pkgs/development/python-modules/pytest-subprocess/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

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.2";
pyproject = true;
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "aklajnert";
repo = "pytest-subprocess";
rev = "refs/tags/${version}";
hash = "sha256-wEPIRWEwAiHSpcu9FMtkpAxqz64csT9AO27NDax3zNY=";
};
build-system = [ setuptools ];
buildInputs = [ pytest ];
nativeCheckInputs = [
pytestCheckHook
docutils
pygments
pytest-rerunfailures
pytest-asyncio
anyio
];
pytestFlagsArray = [ "-W ignore::DeprecationWarning" ];
meta = with lib; {
description = "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 ];
};
}