2021-02-19 19:06:45 +00:00
|
|
|
{ lib, stdenv, buildPythonPackage, fetchFromGitHub, isPyPy, isPy3k
|
|
|
|
, olefile, freetype, libjpeg, zlib, libtiff, libwebp, tcl, lcms2
|
2022-04-27 09:35:20 +00:00
|
|
|
, libxcb, tk, libX11, openjpeg, libimagequant, pyroma, numpy, defusedxml
|
2021-05-20 23:08:51 +00:00
|
|
|
, pytestCheckHook
|
2021-02-19 19:06:45 +00:00
|
|
|
}@args:
|
|
|
|
|
|
|
|
import ../pillow/generic.nix (rec {
|
|
|
|
pname = "Pillow-SIMD";
|
2021-07-04 02:40:35 +00:00
|
|
|
# check for release version on https://pypi.org/project/Pillow-SIMD/#history
|
|
|
|
# does not match the latest pillow release version!
|
2022-04-27 09:35:20 +00:00
|
|
|
version = "9.0.0.post1";
|
2021-02-19 19:06:45 +00:00
|
|
|
disabled = !isPy3k;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "uploadcare";
|
|
|
|
repo = "pillow-simd";
|
2021-07-04 02:40:35 +00:00
|
|
|
rev = "v${version}";
|
2022-04-27 09:35:20 +00:00
|
|
|
sha256 = "sha256-qTZYhgHjVMXqoYl3mG1xVrFaWrPidSY8HlyFQizV27Y=";
|
2021-02-19 19:06:45 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
meta = with lib; {
|
2022-06-16 17:23:12 +00:00
|
|
|
broken = (stdenv.isLinux && stdenv.isAarch64) || stdenv.isDarwin;
|
2021-02-19 19:06:45 +00:00
|
|
|
homepage = "https://python-pillow.github.io/pillow-perf/";
|
|
|
|
description = "The friendly PIL fork - SIMD version";
|
|
|
|
longDescription = ''
|
|
|
|
Pillow-SIMD is "following" Pillow. Pillow-SIMD versions are 100% compatible drop-in replacements for Pillow of the same version.
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
Currently, Pillow-SIMD can be compiled with SSE4 (default) or AVX2 support.
|
|
|
|
'';
|
|
|
|
license = "http://www.pythonware.com/products/pil/license.htm";
|
|
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
|
|
|
};
|
|
|
|
} // args )
|