1{ 2 lib, 3 buildPythonPackage, 4 pythonOlder, 5 fetchFromGitHub, 6 setuptools, 7 pytest, 8 pytestCheckHook, 9 docutils, 10 pygments, 11 pytest-rerunfailures, 12 pytest-asyncio, 13 anyio, 14 typing-extensions, 15}: 16 17buildPythonPackage rec { 18 pname = "pytest-subprocess"; 19 version = "1.5.3"; 20 pyproject = true; 21 22 disabled = pythonOlder "3.6"; 23 24 src = fetchFromGitHub { 25 owner = "aklajnert"; 26 repo = "pytest-subprocess"; 27 tag = version; 28 hash = "sha256-3vBYOk/P78NOjAbs3fT6py5QOOK3fX+AKtO4j5vxZfk="; 29 }; 30 31 build-system = [ setuptools ]; 32 33 buildInputs = [ pytest ]; 34 35 nativeCheckInputs = [ 36 pytestCheckHook 37 docutils 38 pygments 39 pytest-rerunfailures 40 pytest-asyncio 41 anyio 42 typing-extensions 43 ]; 44 45 pytestFlags = [ "-Wignore::DeprecationWarning" ]; 46 47 meta = with lib; { 48 description = "Plugin to fake subprocess for pytest"; 49 homepage = "https://github.com/aklajnert/pytest-subprocess"; 50 changelog = "https://github.com/aklajnert/pytest-subprocess/blob/${src.tag}/HISTORY.rst"; 51 license = licenses.mit; 52 maintainers = with maintainers; [ dotlambda ]; 53 }; 54}