2018-05-25 11:42:34 +02:00
|
|
|
{ stdenv, fetchPypi, buildPythonPackage, lxml, typed-ast, psutil, isPy3k }:
|
2017-05-11 22:33:34 +02:00
|
|
|
|
2018-05-25 11:42:34 +02:00
|
|
|
buildPythonPackage rec {
|
2017-05-11 22:33:34 +02:00
|
|
|
pname = "mypy";
|
2018-06-09 19:24:54 +02:00
|
|
|
version = "0.610";
|
2016-07-11 19:35:00 +02:00
|
|
|
|
|
|
|
# Tests not included in pip package.
|
|
|
|
doCheck = false;
|
|
|
|
|
2017-05-11 22:33:34 +02:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-06-09 19:24:54 +02:00
|
|
|
sha256 = "0fc7h7hf9042nlqczdvj2ngz2hc7rcnd35qz5pb840j38x9n8wpl";
|
2016-07-11 19:35:00 +02:00
|
|
|
};
|
|
|
|
|
2018-05-25 11:42:34 +02:00
|
|
|
disabled = !isPy3k;
|
|
|
|
|
2018-01-27 12:21:49 +01:00
|
|
|
propagatedBuildInputs = [ lxml typed-ast psutil ];
|
2016-07-12 11:22:24 +02:00
|
|
|
|
2016-07-11 19:35:00 +02:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Optional static typing for Python";
|
|
|
|
homepage = "http://www.mypy-lang.org";
|
|
|
|
license = licenses.mit;
|
2017-05-11 22:33:34 +02:00
|
|
|
maintainers = with maintainers; [ martingms lnl7 ];
|
2016-07-11 19:35:00 +02:00
|
|
|
};
|
|
|
|
}
|