Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.09 39 lines 781 B view raw
1{ stdenv 2, buildPythonPackage 3, fetchPypi 4, pyannotate 5, pytest 6}: 7 8buildPythonPackage rec { 9 version = "1.0.2"; 10 pname = "pytest-annotate"; 11 12 src = fetchPypi { 13 inherit pname version; 14 sha256 = "03e4dece2d1aa91666034f1b2e8bb7a7b8c6be11baf3cf2929b26eea5c6e86f3"; 15 }; 16 17 buildInputs = [ 18 pytest 19 ]; 20 21 propagatedBuildInputs = [ 22 pyannotate 23 ]; 24 25 postPatch = '' 26 substituteInPlace setup.py \ 27 --replace "pytest>=3.2.0,<4.0.0" "pytest" 28 ''; 29 30 # no testing in a testing module... 31 doCheck = false; 32 33 meta = with stdenv.lib; { 34 homepage = https://github.com/kensho-technologies/pytest-annotate; 35 description = "Generate PyAnnotate annotations from your pytest tests"; 36 license = licenses.asl20; 37 maintainers = [ maintainers.costrouc ]; 38 }; 39}