2ce89355c3
GitOrigin-RevId: 22a81aa5fc15b2d41b12f7160a71cd4a9f3c3fa1
35 lines
809 B
Nix
35 lines
809 B
Nix
{ stdenv, fetchPypi, buildPythonPackage, typed-ast, psutil, isPy3k
|
|
, mypy-extensions
|
|
, typing-extensions
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "mypy";
|
|
version = "0.780";
|
|
disabled = !isPy3k;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "4ef13b619a289aa025f2273e05e755f8049bb4eaba6d703a425de37d495d178d";
|
|
};
|
|
|
|
propagatedBuildInputs = [ typed-ast psutil mypy-extensions typing-extensions ];
|
|
|
|
# Tests not included in pip package.
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [
|
|
"mypy"
|
|
"mypy.types"
|
|
"mypy.api"
|
|
"mypy.fastparse"
|
|
"mypy.report"
|
|
];
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Optional static typing for Python";
|
|
homepage = "http://www.mypy-lang.org";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ martingms lnl7 ];
|
|
};
|
|
}
|