2021-04-12 18:23:04 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, pythonOlder
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pytest
|
|
|
|
, pytestCheckHook
|
|
|
|
, docutils
|
|
|
|
, pygments
|
2022-01-26 04:04:25 +00:00
|
|
|
, pytest-rerunfailures
|
|
|
|
, pytest-asyncio
|
|
|
|
, anyio
|
2021-04-12 18:23:04 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-subprocess";
|
2022-02-10 20:34:41 +00:00
|
|
|
version = "1.4.1";
|
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";
|
|
|
|
rev = version;
|
2022-02-10 20:34:41 +00:00
|
|
|
hash = "sha256-xNkOXBCQ4AH/JVmxFzI3VSouA6jkCbUom7AdckfjGiE=";
|
2021-04-12 18:23:04 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
pytest
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
docutils
|
|
|
|
pygments
|
2022-01-26 04:04:25 +00:00
|
|
|
pytest-rerunfailures
|
|
|
|
pytest-asyncio
|
|
|
|
anyio
|
2021-04-12 18:23:04 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|