diff options
Diffstat (limited to 'pkgs/development/python-modules/pyannotate/default.nix')
-rw-r--r-- | pkgs/development/python-modules/pyannotate/default.nix | 34 |
1 files changed, 21 insertions, 13 deletions
diff --git a/pkgs/development/python-modules/pyannotate/default.nix b/pkgs/development/python-modules/pyannotate/default.nix index 332a4161fe787..50edda1a7ef2b 100644 --- a/pkgs/development/python-modules/pyannotate/default.nix +++ b/pkgs/development/python-modules/pyannotate/default.nix @@ -1,34 +1,42 @@ { lib , buildPythonPackage , fetchPypi +, mypy-extensions +, pytestCheckHook , pythonOlder , six -, mypy-extensions -, typing -, pytest }: buildPythonPackage rec { - version = "1.2.0"; pname = "pyannotate"; + version = "1.2.0"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - sha256 = "16bm0mf7wxvy0lgmcs1p8n1ji8pnvj1jvj8zk3am70dkp825iv84"; + hash = "sha256-BO1YBLqzgVPVmB/JLYPc9qIog0U3aFYfBX53flwFdZk="; }; - checkInputs = [ pytest ]; - propagatedBuildInputs = [ six mypy-extensions ] - ++ lib.optionals (pythonOlder "3.5") [ typing ]; + propagatedBuildInputs = [ + six + mypy-extensions + ]; + + checkInputs = [ + pytestCheckHook + ]; - checkPhase = '' - py.test - ''; + pythonImportsCheck = [ + "pyannotate_runtime" + "pyannotate_tools" + ]; meta = with lib; { - homepage = "https://github.com/dropbox/pyannotate"; description = "Auto-generate PEP-484 annotations"; + homepage = "https://github.com/dropbox/pyannotate"; license = licenses.mit; - maintainers = [ maintainers.costrouc ]; + maintainers = with maintainers; [ costrouc ]; }; } |