Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 mypy-extensions, 6 pytestCheckHook, 7 pythonOlder, 8 six, 9}: 10 11buildPythonPackage rec { 12 pname = "pyannotate"; 13 version = "1.2.0"; 14 format = "setuptools"; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchPypi { 19 inherit pname version; 20 hash = "sha256-BO1YBLqzgVPVmB/JLYPc9qIog0U3aFYfBX53flwFdZk="; 21 }; 22 23 propagatedBuildInputs = [ 24 six 25 mypy-extensions 26 ]; 27 28 nativeCheckInputs = [ pytestCheckHook ]; 29 30 pythonImportsCheck = [ 31 "pyannotate_runtime" 32 "pyannotate_tools" 33 ]; 34 35 meta = with lib; { 36 description = "Auto-generate PEP-484 annotations"; 37 mainProgram = "pyannotate"; 38 homepage = "https://github.com/dropbox/pyannotate"; 39 license = licenses.mit; 40 maintainers = [ ]; 41 }; 42}