2021-04-09 12:43:23 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, pythonOlder
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pytest
|
|
|
|
, pytestCheckHook
|
|
|
|
, docutils
|
|
|
|
, pygments
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-subprocess";
|
2021-04-18 19:35:53 +01:00
|
|
|
version = "1.1.0";
|
2021-04-09 12:43:23 +01:00
|
|
|
|
2021-04-18 19:35:53 +01:00
|
|
|
disabled = pythonOlder "3.6";
|
2021-04-09 12:43:23 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "aklajnert";
|
|
|
|
repo = "pytest-subprocess";
|
|
|
|
rev = version;
|
2021-04-18 19:35:53 +01:00
|
|
|
sha256 = "sha256-r6WNDdvZAHMG1kPtLJlCwvhbVG1gC1NEvRfta+Chxnk=";
|
2021-04-09 12:43:23 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
pytest
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
docutils
|
|
|
|
pygments
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
"test_multiple_wait" # https://github.com/aklajnert/pytest-subprocess/issues/36
|
|
|
|
];
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|