1{ 2 lib, 3 stdenv, 4 buildPythonPackage, 5 fetchPypi, 6 pyannotate, 7 pytest, 8}: 9 10buildPythonPackage rec { 11 pname = "pytest-annotate"; 12 version = "1.0.5"; 13 format = "setuptools"; 14 15 src = fetchPypi { 16 inherit pname version; 17 hash = "sha256-CSaTIPjSGHKCR0Nvet6W8zzz/oWEC0BjIULZ+JaMH9A="; 18 }; 19 20 buildInputs = [ pytest ]; 21 22 propagatedBuildInputs = [ pyannotate ]; 23 24 postPatch = '' 25 substituteInPlace setup.py \ 26 --replace "pytest>=3.2.0,<7.0.0" "pytest>=3.2.0" 27 ''; 28 29 # Module has no tests 30 doCheck = false; 31 32 pythonImportsCheck = [ "pytest_annotate" ]; 33 34 meta = with lib; { 35 broken = stdenv.isDarwin; 36 description = "Generate PyAnnotate annotations from your pytest tests"; 37 homepage = "https://github.com/kensho-technologies/pytest-annotate"; 38 license = licenses.asl20; 39 maintainers = with maintainers; [ ]; 40 }; 41}