68d7e71424
GitOrigin-RevId: 945ec499041db73043f745fad3b2a3a01e826081
47 lines
930 B
Nix
47 lines
930 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, fetchFromGitHub
|
|
, pytest
|
|
, pytestCheckHook
|
|
, docutils
|
|
, pygments
|
|
, pytest-rerunfailures
|
|
, pytest-asyncio
|
|
, anyio
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pytest-subprocess";
|
|
version = "1.4.0";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "aklajnert";
|
|
repo = "pytest-subprocess";
|
|
rev = version;
|
|
hash = "sha256-+bsxoOsY0yf77EivImrfqxgVW0T/VnFIJXvy8X5pmEY=";
|
|
};
|
|
|
|
buildInputs = [
|
|
pytest
|
|
];
|
|
|
|
checkInputs = [
|
|
pytestCheckHook
|
|
docutils
|
|
pygments
|
|
pytest-rerunfailures
|
|
pytest-asyncio
|
|
anyio
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|