mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
python3Packages.charset-normaler: expose withMypyc flag
This is necessary to break the
fetch-cargo-vendor
-> ast-serialize
-> mypy
-> charset-normalizer
-> requests
-> fetch-cargo-vendor
infinite recursion
This commit is contained in:
parent
c5d5b72238
commit
a9349934d2
1 changed files with 3 additions and 2 deletions
|
|
@ -8,6 +8,7 @@
|
|||
pytestCheckHook,
|
||||
requests,
|
||||
setuptools,
|
||||
withMypyc ? !isPyPy,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
|
|
@ -30,9 +31,9 @@ buildPythonPackage rec {
|
|||
build-system = [
|
||||
setuptools
|
||||
]
|
||||
++ lib.optional (!isPyPy) mypy;
|
||||
++ lib.optional (withMypyc) mypy;
|
||||
|
||||
env.CHARSET_NORMALIZER_USE_MYPYC = lib.optionalString (!isPyPy) "1";
|
||||
env.CHARSET_NORMALIZER_USE_MYPYC = lib.optionalString withMypyc "1";
|
||||
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue