1{ stdenv, fetchPypi, buildPythonPackage, typed-ast, psutil, isPy3k
2, mypy-extensions
3, typing-extensions
4}:
5
6buildPythonPackage rec {
7 pname = "mypy";
8 version = "0.761";
9 disabled = !isPy3k;
10
11 src = fetchPypi {
12 inherit pname version;
13 sha256 = "1gw7h84d21wmi267kmgqs9whz0l7rp62pzja2f31wq7cfj6spfl5";
14 };
15
16 propagatedBuildInputs = [ typed-ast psutil mypy-extensions typing-extensions ];
17
18 # Tests not included in pip package.
19 doCheck = false;
20
21 pythonImportsCheck = [
22 "mypy"
23 "mypy.types"
24 "mypy.api"
25 "mypy.fastparse"
26 "mypy.report"
27 ];
28
29 meta = with stdenv.lib; {
30 description = "Optional static typing for Python";
31 homepage = "http://www.mypy-lang.org";
32 license = licenses.mit;
33 maintainers = with maintainers; [ martingms lnl7 ];
34 };
35}