1 { lib, stdenv, buildPythonPackage, fetchFromGitHub, isPyPy, isPy3k
2 , olefile, freetype, libjpeg, zlib, libtiff, libwebp, libxcrypt, tcl, lcms2
3 , libxcb, tk, libX11, openjpeg, libimagequant, pyroma, numpy, defusedxml
4 , pytestCheckHook, setuptools
7 import ../pillow/generic.nix (rec {
9 # check for release version on https://pypi.org/project/Pillow-SIMD/#history
10 # does not match the latest pillow release version!
11 version = "9.0.0.post1";
12 format = "setuptools";
16 src = fetchFromGitHub {
20 hash = "sha256-qTZYhgHjVMXqoYl3mG1xVrFaWrPidSY8HlyFQizV27Y=";
24 broken = (stdenv.isLinux && stdenv.isAarch64) || stdenv.isDarwin;
25 homepage = "https://python-pillow.github.io/pillow-perf/";
26 description = "The friendly PIL fork - SIMD version";
28 Pillow-SIMD is "following" Pillow. Pillow-SIMD versions are 100% compatible drop-in replacements for Pillow of the same version.
30 SIMD stands for "single instruction, multiple data" and its essence is in performing the same operation on multiple data points simultaneously by using multiple processing elements. Common CPU SIMD instruction sets are MMX, SSE-SSE4, AVX, AVX2, AVX512, NEON.
32 Currently, Pillow-SIMD can be compiled with SSE4 (default) or AVX2 support.
34 license = "http://www.pythonware.com/products/pil/license.htm";
35 maintainers = with maintainers; [ ];