diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/pyannotate')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/pyannotate/default.nix | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/pyannotate/default.nix b/nixpkgs/pkgs/development/python-modules/pyannotate/default.nix new file mode 100644 index 000000000000..abf751e88afd --- /dev/null +++ b/nixpkgs/pkgs/development/python-modules/pyannotate/default.nix @@ -0,0 +1,43 @@ +{ lib +, buildPythonPackage +, fetchPypi +, mypy-extensions +, pytestCheckHook +, pythonOlder +, six +}: + +buildPythonPackage rec { + pname = "pyannotate"; + version = "1.2.0"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; + + src = fetchPypi { + inherit pname version; + hash = "sha256-BO1YBLqzgVPVmB/JLYPc9qIog0U3aFYfBX53flwFdZk="; + }; + + propagatedBuildInputs = [ + six + mypy-extensions + ]; + + nativeCheckInputs = [ + pytestCheckHook + ]; + + pythonImportsCheck = [ + "pyannotate_runtime" + "pyannotate_tools" + ]; + + meta = with lib; { + description = "Auto-generate PEP-484 annotations"; + mainProgram = "pyannotate"; + homepage = "https://github.com/dropbox/pyannotate"; + license = licenses.mit; + maintainers = with maintainers; [ ]; + }; +} |