2018-09-17 08:30:25 -07:00
|
|
|
{ stdenv, fetchPypi, buildPythonPackage, lxml, typed-ast, psutil, isPy3k
|
|
|
|
,mypy_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";
|
2019-02-13 23:37:21 -08:00
|
|
|
version = "0.670";
|
2016-07-11 10:35:00 -07:00
|
|
|
|
|
|
|
# Tests not included in pip package.
|
|
|
|
doCheck = false;
|
|
|
|
|
2017-05-11 13:33:34 -07:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-02-13 23:37:21 -08:00
|
|
|
sha256 = "e80fd6af34614a0e898a57f14296d0dacb584648f0339c2e000ddbf0f4cc2f8d";
|
2016-07-11 10:35:00 -07:00
|
|
|
};
|
|
|
|
|
2018-05-25 02:42:34 -07:00
|
|
|
disabled = !isPy3k;
|
|
|
|
|
2018-09-17 08:30:25 -07:00
|
|
|
propagatedBuildInputs = [ lxml typed-ast psutil mypy_extensions ];
|
2016-07-12 02:22:24 -07:00
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|