summary refs log tree commit diff
path: root/pkgs/development/python-modules/pillow-simd/default.nix
blob: ca0d947d37b1cf13a94f891b35ea459a9b9ede87 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{ lib, stdenv, buildPythonPackage, fetchFromGitHub, isPyPy, isPy3k
, olefile, freetype, libjpeg, zlib, libtiff, libwebp, libxcrypt, tcl, lcms2
, libxcb, tk, libX11, openjpeg, libimagequant, pyroma, numpy, defusedxml
, pytestCheckHook, setuptools
}@args:

import ../pillow/generic.nix (rec {
  pname = "Pillow-SIMD";
  # check for release version on https://pypi.org/project/Pillow-SIMD/#history
  # does not match the latest pillow release version!
  version = "9.0.0.post1";
  format = "setuptools";

  disabled = !isPy3k;

  src = fetchFromGitHub {
    owner = "uploadcare";
    repo = "pillow-simd";
    rev = "v${version}";
    hash = "sha256-qTZYhgHjVMXqoYl3mG1xVrFaWrPidSY8HlyFQizV27Y=";
  };

  meta = with lib; {
    broken = (stdenv.isLinux && stdenv.isAarch64) || stdenv.isDarwin;
    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; [ ];
  };
} // args )