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