2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
pythonOlder,
|
|
|
|
fetchFromGitHub,
|
|
|
|
setuptools,
|
|
|
|
pytest,
|
|
|
|
pytestCheckHook,
|
|
|
|
docutils,
|
|
|
|
pygments,
|
|
|
|
pytest-rerunfailures,
|
|
|
|
pytest-asyncio,
|
|
|
|
anyio,
|
2021-04-12 18:23:04 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-subprocess";
|
2023-02-02 18:25:31 +00:00
|
|
|
version = "1.5.0";
|
2024-01-13 08:15:51 +00:00
|
|
|
pyproject = true;
|
2021-04-12 18:23:04 +00:00
|
|
|
|
2021-04-19 03:05:28 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
2021-04-12 18:23:04 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "aklajnert";
|
|
|
|
repo = "pytest-subprocess";
|
2022-10-06 18:32:54 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2023-02-02 18:25:31 +00:00
|
|
|
hash = "sha256-u9d9RhbikOyknMWs18j2efYJb9YdHsQrp31LfcbudoA=";
|
2021-04-12 18:23:04 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ setuptools ];
|
2024-01-13 08:15:51 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
buildInputs = [ pytest ];
|
2021-04-12 18:23:04 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-04-12 18:23:04 +00:00
|
|
|
pytestCheckHook
|
|
|
|
docutils
|
|
|
|
pygments
|
2022-01-26 04:04:25 +00:00
|
|
|
pytest-rerunfailures
|
|
|
|
pytest-asyncio
|
|
|
|
anyio
|
2021-04-12 18:23:04 +00:00
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pytestFlagsArray = [ "-W ignore::DeprecationWarning" ];
|
2024-01-13 08:15:51 +00:00
|
|
|
|
2021-04-12 18:23:04 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Plugin to fake subprocess for pytest";
|
2021-04-12 18:23:04 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|