Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 setuptools-scm, 6 pytest, 7}: 8 9buildPythonPackage rec { 10 pname = "pytest-runner"; 11 version = "6.0.1"; 12 format = "pyproject"; 13 14 src = fetchPypi { 15 inherit pname version; 16 hash = "sha256-cNRzlYWnAI83v0kzwBP9sye4h4paafy7MxbIiILw9Js="; 17 }; 18 19 postPatch = '' 20 rm pytest.ini 21 ''; 22 23 nativeBuildInputs = [ 24 setuptools-scm 25 pytest 26 ]; 27 28 checkPhase = '' 29 py.test tests 30 ''; 31 32 # Fixture not found 33 doCheck = false; 34 35 meta = with lib; { 36 description = "Invoke py.test as distutils command with dependency resolution"; 37 homepage = "https://github.com/pytest-dev/pytest-runner"; 38 license = licenses.mit; 39 }; 40}