2018-10-11 01:30:47 +02:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pythonOlder
|
|
|
|
, six
|
2019-10-24 09:56:26 +02:00
|
|
|
, mypy-extensions
|
2018-10-11 01:30:47 +02:00
|
|
|
, typing
|
|
|
|
, pytest
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2019-10-08 13:33:29 +02:00
|
|
|
version = "1.2.0";
|
2018-10-11 01:30:47 +02:00
|
|
|
pname = "pyannotate";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-10-08 13:33:29 +02:00
|
|
|
sha256 = "16bm0mf7wxvy0lgmcs1p8n1ji8pnvj1jvj8zk3am70dkp825iv84";
|
2018-10-11 01:30:47 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ pytest ];
|
2019-10-24 09:56:26 +02:00
|
|
|
propagatedBuildInputs = [ six mypy-extensions ]
|
2018-10-11 01:30:47 +02:00
|
|
|
++ 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 ];
|
|
|
|
};
|
|
|
|
}
|