pythonPackages.mypy_extensions: use typing from stdlib on >=3.5
It's not necessary to depend on the "typing" backport since it's in the standard library; I also observed serious breakage in anything using the typing module (including) when the backport was in the closure on >=3.5.
This commit is contained in:
parent
4ed993367f
commit
fd9d45c7c1
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchPypi, buildPythonPackage, typing, isPy3k }:
|
{ stdenv, fetchPypi, buildPythonPackage, typing, pythonOlder }:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "mypy_extensions";
|
pname = "mypy_extensions";
|
||||||
@ -12,7 +12,7 @@ buildPythonPackage rec {
|
|||||||
sha256 = "04h8brrbbx151dfa2cvvlnxgmb5wa00mhd2z7nd20s8kyibfkq1p";
|
sha256 = "04h8brrbbx151dfa2cvvlnxgmb5wa00mhd2z7nd20s8kyibfkq1p";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ typing ];
|
propagatedBuildInputs = if pythonOlder "3.5" then [ typing ] else [ ];
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Experimental type system extensions for programs checked with the mypy typechecker";
|
description = "Experimental type system extensions for programs checked with the mypy typechecker";
|
||||||
|
Loading…
Reference in New Issue
Block a user