Skip to content

Commit

Permalink
Reapply "python3Packages.pillow & python3Packages.pillow-simd: Fix cr…
Browse files Browse the repository at this point in the history
…oss compilation""

This reverts commit 68eb957, reversing
changes made to 347a238.
Moving the big rebuild to staging; original PR #249136, revert #251367
  • Loading branch information
vcunat committed Aug 25, 2023
1 parent d877005 commit 094bfcf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkgs/development/python-modules/pillow-simd/default.nix
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion pkgs/development/python-modules/pillow/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 2 additions & 0 deletions pkgs/development/python-modules/pillow/generic.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 ];
Expand Down

0 comments on commit 094bfcf

Please sign in to comment.