python3Packages.charset-normalizer: provide ast-serialize build dep

Now that mypy requires ast-serialize at build time, charset-normalizer
wants it too.
This commit is contained in:
Martin Weinelt 2026-05-14 19:09:38 +02:00
commit 73599831a4

View file

@ -4,6 +4,7 @@
buildPythonPackage,
fetchFromGitHub,
isPyPy,
ast-serialize,
mypy,
pytestCheckHook,
requests,
@ -31,7 +32,10 @@ buildPythonPackage rec {
build-system = [
setuptools
]
++ lib.optional (withMypyc) mypy;
++ lib.optionals withMypyc [
ast-serialize
mypy
];
env.CHARSET_NORMALIZER_USE_MYPYC = lib.optionalString withMypyc "1";