mypy: add missing dep, rename mypy_extensions to mypy-extensions
This commit is contained in:
parent
2e5b23d86b
commit
5e8be2fb84
@ -18,7 +18,7 @@ with python3.pkgs; buildPythonApplication rec {
|
||||
pylint
|
||||
flake8
|
||||
pyyaml
|
||||
mypy_extensions
|
||||
mypy-extensions
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
|
@ -1,5 +1,7 @@
|
||||
{ stdenv, fetchPypi, buildPythonPackage, typed-ast, psutil, isPy3k
|
||||
,mypy_extensions }:
|
||||
, mypy-extensions
|
||||
, typing-extensions
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "mypy";
|
||||
@ -15,7 +17,7 @@ buildPythonPackage rec {
|
||||
|
||||
disabled = !isPy3k;
|
||||
|
||||
propagatedBuildInputs = [ typed-ast psutil mypy_extensions ];
|
||||
propagatedBuildInputs = [ typed-ast psutil mypy-extensions typing-extensions ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Optional static typing for Python";
|
||||
|
@ -1,14 +1,15 @@
|
||||
{ stdenv, fetchPypi, buildPythonPackage, typing, pythonOlder }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "mypy_extensions";
|
||||
pname = "mypy-extensions";
|
||||
version = "0.4.3";
|
||||
|
||||
# Tests not included in pip package.
|
||||
doCheck = false;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
inherit version;
|
||||
pname = "mypy_extensions";
|
||||
sha256 = "2d82818f5bb3e369420cb3c4060a7970edba416647068eb4c5343488a6c604a8";
|
||||
};
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
, fetchPypi
|
||||
, pythonOlder
|
||||
, six
|
||||
, mypy_extensions
|
||||
, mypy-extensions
|
||||
, typing
|
||||
, pytest
|
||||
}:
|
||||
@ -18,7 +18,7 @@ buildPythonPackage rec {
|
||||
};
|
||||
|
||||
checkInputs = [ pytest ];
|
||||
propagatedBuildInputs = [ six mypy_extensions ]
|
||||
propagatedBuildInputs = [ six mypy-extensions ]
|
||||
++ stdenv.lib.optionals (pythonOlder "3.5") [ typing ];
|
||||
|
||||
checkPhase = ''
|
||||
|
@ -3913,7 +3913,7 @@ in {
|
||||
|
||||
mypy = callPackage ../development/python-modules/mypy { };
|
||||
|
||||
mypy_extensions = callPackage ../development/python-modules/mypy/extensions.nix { };
|
||||
mypy-extensions = callPackage ../development/python-modules/mypy/extensions.nix { };
|
||||
|
||||
mypy-protobuf = callPackage ../development/python-modules/mypy-protobuf { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user