Files
nixpkgs/pkgs/development/python-modules/pyannotate/default.nix
T

35 lines
689 B
Nix
Raw Normal View History

2018-10-10 19:30:47 -04:00
{ stdenv
, buildPythonPackage
, fetchPypi
, pythonOlder
, six
, mypy-extensions
2018-10-10 19:30:47 -04:00
, typing
, pytest
}:
buildPythonPackage rec {
2019-10-08 04:33:29 -07:00
version = "1.2.0";
2018-10-10 19:30:47 -04:00
pname = "pyannotate";
src = fetchPypi {
inherit pname version;
2019-10-08 04:33:29 -07:00
sha256 = "16bm0mf7wxvy0lgmcs1p8n1ji8pnvj1jvj8zk3am70dkp825iv84";
2018-10-10 19:30:47 -04:00
};
checkInputs = [ pytest ];
propagatedBuildInputs = [ six mypy-extensions ]
2018-10-10 19:30:47 -04:00
++ stdenv.lib.optionals (pythonOlder "3.5") [ typing ];
checkPhase = ''
py.test
'';
meta = with stdenv.lib; {
homepage = "https://github.com/dropbox/pyannotate";
2018-10-10 19:30:47 -04:00
description = "Auto-generate PEP-484 annotations";
license = licenses.mit;
maintainers = [ maintainers.costrouc ];
};
}