Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ stdenv 2, buildPythonPackage 3, fetchPypi 4, pyannotate 5, pytest 6}: 7 8buildPythonPackage rec { 9 version = "1.0.3"; 10 pname = "pytest-annotate"; 11 12 src = fetchPypi { 13 inherit pname version; 14 sha256 = "1ef5924aca93a7b47edaf46a38284fb5a173eed5e3b1a93ec00c8e35f0dd76ab"; 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}