Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ stdenv 2, buildPythonPackage 3, fetchPypi 4, pythonOlder 5, six 6, mypy_extensions 7, typing 8, pytest 9}: 10 11buildPythonPackage rec { 12 version = "1.0.7"; 13 pname = "pyannotate"; 14 15 src = fetchPypi { 16 inherit pname version; 17 sha256 = "54e6035a8601248992e17734034e6555842c6ea9863f90c15d14fe76a184be07"; 18 }; 19 20 checkInputs = [ pytest ]; 21 propagatedBuildInputs = [ six mypy_extensions ] 22 ++ stdenv.lib.optionals (pythonOlder "3.5") [ typing ]; 23 24 checkPhase = '' 25 py.test 26 ''; 27 28 meta = with stdenv.lib; { 29 homepage = https://github.com/dropbox/pyannotate; 30 description = "Auto-generate PEP-484 annotations"; 31 license = licenses.mit; 32 maintainers = [ maintainers.costrouc ]; 33 }; 34}