nixpkgs/pkgs/development/python-modules/mypy/default.nix

27 lines
646 B
Nix
Raw Normal View History

2019-05-21 02:20:05 +02:00
{ stdenv, fetchPypi, buildPythonPackage, typed-ast, psutil, isPy3k
,mypy_extensions }:
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";
2019-09-20 11:57:44 +02:00
version = "0.711";
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;
2019-09-20 11:57:44 +02:00
sha256 = "0s1kwi1dhrv55v0c9w7c1g6mq5d2dpw7x1jj5mcnniw77mclmvdv";
2016-07-11 19:35:00 +02:00
};
2018-05-25 11:42:34 +02:00
disabled = !isPy3k;
2019-05-21 02:20:05 +02:00
propagatedBuildInputs = [ typed-ast psutil mypy_extensions ];
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
};
}