3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/mypy/default.nix

36 lines
797 B
Nix
Raw Normal View History

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