2019-05-21 00:20:05 +00:00
|
|
|
{ stdenv, fetchPypi, buildPythonPackage, typed-ast, psutil, isPy3k
|
2019-10-24 07:56:26 +00:00
|
|
|
, mypy-extensions
|
|
|
|
, typing-extensions
|
|
|
|
}:
|
2017-05-11 20:33:34 +00:00
|
|
|
|
2018-05-25 09:42:34 +00:00
|
|
|
buildPythonPackage rec {
|
2017-05-11 20:33:34 +00:00
|
|
|
pname = "mypy";
|
2020-03-27 07:25:24 +00:00
|
|
|
version = "0.770";
|
2019-12-16 02:56:06 +00:00
|
|
|
disabled = !isPy3k;
|
2016-07-11 17:35:00 +00:00
|
|
|
|
2017-05-11 20:33:34 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-03-27 07:25:24 +00:00
|
|
|
sha256 = "1bm40nx9g1n4nj1309cijnh0ns4qbhym3agyl537nc4vxw3paqla";
|
2016-07-11 17:35:00 +00:00
|
|
|
};
|
|
|
|
|
2019-10-24 07:56:26 +00:00
|
|
|
propagatedBuildInputs = [ typed-ast psutil mypy-extensions typing-extensions ];
|
2016-07-12 09:22:24 +00:00
|
|
|
|
2019-12-16 02:56:06 +00:00
|
|
|
# Tests not included in pip package.
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"mypy"
|
|
|
|
"mypy.types"
|
|
|
|
"mypy.api"
|
|
|
|
"mypy.fastparse"
|
|
|
|
"mypy.report"
|
|
|
|
];
|
|
|
|
|
2016-07-11 17:35:00 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Optional static typing for Python";
|
|
|
|
homepage = "http://www.mypy-lang.org";
|
|
|
|
license = licenses.mit;
|
2017-05-11 20:33:34 +00:00
|
|
|
maintainers = with maintainers; [ martingms lnl7 ];
|
2016-07-11 17:35:00 +00:00
|
|
|
};
|
|
|
|
}
|