Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
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}: 15 16buildPythonPackage rec { 17 pname = "pytest-subprocess"; 18 version = "1.5.0"; 19 pyproject = true; 20 21 disabled = pythonOlder "3.6"; 22 23 src = fetchFromGitHub { 24 owner = "aklajnert"; 25 repo = "pytest-subprocess"; 26 rev = "refs/tags/${version}"; 27 hash = "sha256-u9d9RhbikOyknMWs18j2efYJb9YdHsQrp31LfcbudoA="; 28 }; 29 30 nativeBuildInputs = [ setuptools ]; 31 32 buildInputs = [ pytest ]; 33 34 nativeCheckInputs = [ 35 pytestCheckHook 36 docutils 37 pygments 38 pytest-rerunfailures 39 pytest-asyncio 40 anyio 41 ]; 42 43 pytestFlagsArray = [ "-W ignore::DeprecationWarning" ]; 44 45 meta = with lib; { 46 description = "Plugin to fake subprocess for pytest"; 47 homepage = "https://github.com/aklajnert/pytest-subprocess"; 48 changelog = "https://github.com/aklajnert/pytest-subprocess/blob/${version}/HISTORY.rst"; 49 license = licenses.mit; 50 maintainers = with maintainers; [ dotlambda ]; 51 }; 52}