nixpkgs/pkgs/development/python-modules/mypy/default.nix

36 lines
809 B
Nix
Raw Normal View History

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