python3Packages.mypy: 0.620 -> 0.630
Now requires mypy_extensions so added it as well.
This commit is contained in:
parent
463704a62e
commit
676ceb81b7
|
@ -1,20 +1,21 @@
|
|||
{ stdenv, fetchPypi, buildPythonPackage, lxml, typed-ast, psutil, isPy3k }:
|
||||
{ stdenv, fetchPypi, buildPythonPackage, lxml, typed-ast, psutil, isPy3k
|
||||
,mypy_extensions }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "mypy";
|
||||
version = "0.620";
|
||||
version = "0.630";
|
||||
|
||||
# Tests not included in pip package.
|
||||
doCheck = false;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "c770605a579fdd4a014e9f0a34b6c7a36ce69b08100ff728e96e27445cef3b3c";
|
||||
sha256 = "1p8rnap4ngczfm2q4035mcmn5nsprbljnhksx2jxzxrb9immh137";
|
||||
};
|
||||
|
||||
disabled = !isPy3k;
|
||||
|
||||
propagatedBuildInputs = [ lxml typed-ast psutil ];
|
||||
propagatedBuildInputs = [ lxml typed-ast psutil mypy_extensions ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Optional static typing for Python";
|
||||
|
|
25
pkgs/development/python-modules/mypy/extensions.nix
Normal file
25
pkgs/development/python-modules/mypy/extensions.nix
Normal file
|
@ -0,0 +1,25 @@
|
|||
{ stdenv, fetchPypi, buildPythonPackage, typing, isPy3k }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "mypy_extensions";
|
||||
version = "0.4.1";
|
||||
|
||||
# Tests not included in pip package.
|
||||
doCheck = false;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "04h8brrbbx151dfa2cvvlnxgmb5wa00mhd2z7nd20s8kyibfkq1p";
|
||||
};
|
||||
|
||||
disabled = !isPy3k;
|
||||
|
||||
propagatedBuildInputs = [ typing ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Experimental type system extensions for programs checked with the mypy typechecker";
|
||||
homepage = "http://www.mypy-lang.org";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ martingms lnl7 ];
|
||||
};
|
||||
}
|
|
@ -7786,6 +7786,8 @@ in {
|
|||
|
||||
mypy = callPackage ../development/python-modules/mypy { };
|
||||
|
||||
mypy_extensions = callPackage ../development/python-modules/mypy/extensions.nix { };
|
||||
|
||||
mypy-protobuf = callPackage ../development/python-modules/mypy-protobuf { };
|
||||
|
||||
mwclient = buildPythonPackage rec {
|
||||
|
|
Loading…
Reference in a new issue