python3Packages.mypy: Disable mypy.report import on i686-linux

Importing the mypy.report fails due to a circular import.
This commit is contained in:
Martin Weinelt 2022-10-12 13:00:01 +02:00
parent 7d3e7f4890
commit 0310ac43a5
No known key found for this signature in database
GPG key ID: 87C1E9888F856759

View file

@ -63,10 +63,12 @@ buildPythonPackage rec {
"mypy"
"mypy.api"
"mypy.fastparse"
"mypy.report"
"mypy.types"
"mypyc"
"mypyc.analysis"
] ++ lib.optionals (!stdenv.hostPlatform.isi686) [
# ImportError: cannot import name 'map_instance_to_supertype' from partially initialized module 'mypy.maptype' (most likely due to a circular import)
"mypy.report"
];
# Compile mypy with mypyc, which makes mypy about 4 times faster. The compiled