2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2018-10-11 00:30:47 +01:00
|
|
|
, 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 ]
|
2021-01-24 00:29:22 +00:00
|
|
|
++ lib.optionals (pythonOlder "3.5") [ typing ];
|
2018-10-11 00:30:47 +01:00
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
py.test
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with 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 ];
|
|
|
|
};
|
|
|
|
}
|