2018-10-10 23:30:47 +00:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pythonOlder
|
|
|
|
, six
|
|
|
|
, mypy_extensions
|
|
|
|
, typing
|
|
|
|
, pytest
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2018-11-20 10:58:37 +00:00
|
|
|
version = "1.0.7";
|
2018-10-10 23:30:47 +00:00
|
|
|
pname = "pyannotate";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-11-20 10:58:37 +00:00
|
|
|
sha256 = "54e6035a8601248992e17734034e6555842c6ea9863f90c15d14fe76a184be07";
|
2018-10-10 23:30:47 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ pytest ];
|
|
|
|
propagatedBuildInputs = [ six mypy_extensions ]
|
|
|
|
++ stdenv.lib.optionals (pythonOlder "3.5") [ typing ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
py.test
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://github.com/dropbox/pyannotate;
|
|
|
|
description = "Auto-generate PEP-484 annotations";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|