2018-09-17 16:30:25 +01:00
|
|
|
{ stdenv, fetchPypi, buildPythonPackage, lxml, typed-ast, psutil, isPy3k
|
|
|
|
,mypy_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";
|
2018-10-24 19:09:52 +01:00
|
|
|
version = "0.641";
|
2016-07-11 18:35:00 +01:00
|
|
|
|
|
|
|
# Tests not included in pip package.
|
|
|
|
doCheck = false;
|
|
|
|
|
2017-05-11 21:33:34 +01:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-10-24 19:09:52 +01:00
|
|
|
sha256 = "0ma4l7px96zzb8x89dk9mkrrdzdhdqckvfsbld4fj9n25k1iw1wf";
|
2016-07-11 18:35:00 +01:00
|
|
|
};
|
|
|
|
|
2018-05-25 10:42:34 +01:00
|
|
|
disabled = !isPy3k;
|
|
|
|
|
2018-09-17 16:30:25 +01:00
|
|
|
propagatedBuildInputs = [ lxml typed-ast psutil mypy_extensions ];
|
2016-07-12 10:22:24 +01:00
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|