Merge pull request #249136 from OroraTech/chore/fix-pillow

python3Packages.pillow & python3Packages.pillow-simd: Fix cross compilation
This commit is contained in:
Adam Joseph 2023-08-25 11:10:14 +00:00 committed by GitHub
commit 0fdae6857d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 2 deletions

View File

@ -1,7 +1,7 @@
{ lib, stdenv, buildPythonPackage, fetchFromGitHub, isPyPy, isPy3k
, olefile, freetype, libjpeg, zlib, libtiff, libwebp, libxcrypt, tcl, lcms2
, libxcb, tk, libX11, openjpeg, libimagequant, pyroma, numpy, defusedxml
, pytestCheckHook
, pytestCheckHook, setuptools
}@args:
import ../pillow/generic.nix (rec {

View File

@ -6,7 +6,7 @@
, fetchpatch
, isPyPy
, defusedxml, olefile, freetype, libjpeg, zlib, libtiff, libwebp, libxcrypt, tcl, lcms2, tk, libX11
, libxcb, openjpeg, libimagequant, pyroma, numpy, pytestCheckHook
, libxcb, openjpeg, libimagequant, pyroma, numpy, pytestCheckHook, setuptools
# for passthru.tests
, imageio, matplotlib, pilkit, pydicom, reportlab
}@args:

View File

@ -39,6 +39,8 @@ buildPythonPackage rec {
nativeCheckInputs = [ pytestCheckHook pyroma numpy ];
nativeBuildInputs = [ setuptools ];
buildInputs = [ freetype libjpeg openjpeg libimagequant zlib libtiff libwebp libxcrypt tcl lcms2 ]
++ lib.optionals (lib.versionAtLeast version "7.1.0") [ libxcb ]
++ lib.optionals (isPyPy) [ tk libX11 ];