py-pillow: patch for disabling optional deps (#47542)

This commit is contained in:
Harmen Stoppels 2024-11-11 19:55:47 +01:00 committed by GitHub
parent 9ed5e1de8e
commit 484c9cf47c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -74,6 +74,12 @@ class PyPillowBase(PythonPackage):
depends_on("libimagequant", when="+imagequant")
depends_on("libxcb", when="+xcb")
patch(
"https://github.com/python-pillow/Pillow/commit/1c11d4581c5705dfa21bc5a4f3b6980c556978bf.patch?full_index=1",
sha256="599f37e6a5a8d1adb9f4025ffc7cae5f5b61cad60a04e7c7a3015f9e350047bb",
when="@11.0.0",
)
@when("@10:")
def config_settings(self, spec, prefix):
settings = {"parallel": make_jobs}