1{ lib, buildPythonPackage, fetchPypi, setuptools-scm, pytest }: 2 3buildPythonPackage rec { 4 pname = "pytest-runner"; 5 version = "5.2"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "96c7e73ead7b93e388c5d614770d2bae6526efd997757d3543fe17b557a0942b"; 10 }; 11 12 nativeBuildInputs = [ setuptools-scm pytest ]; 13 14 postPatch = '' 15 rm pytest.ini 16 ''; 17 18 checkPhase = '' 19 py.test tests 20 ''; 21 22 # Fixture not found 23 doCheck = false; 24 25 meta = with lib; { 26 description = "Invoke py.test as distutils command with dependency resolution"; 27 homepage = "https://github.com/pytest-dev/pytest-runner"; 28 license = licenses.mit; 29 }; 30}