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