Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, stdenv 3, buildPythonPackage 4, pythonOlder 5, fetchPypi 6, fetchpatch 7, isPyPy 8, defusedxml, olefile, freetype, libjpeg, zlib, libtiff, libwebp, libxcrypt, tcl, lcms2, tk, libX11 9, libxcb, openjpeg, libimagequant, pyroma, numpy, pytestCheckHook, setuptools 10# for passthru.tests 11, imageio, matplotlib, pilkit, pydicom, reportlab 12}@args: 13 14import ./generic.nix (rec { 15 pname = "pillow"; 16 version = "10.0.0"; 17 format = "pyproject"; 18 19 disabled = pythonOlder "3.8"; 20 21 src = fetchPypi { 22 pname = "Pillow"; 23 inherit version; 24 hash = "sha256-nIK1s+BDx68NlXktDSDM9o9hof7Gs1MOcYtohCJyc5Y="; 25 }; 26 27 patches = [ 28 # Pull in zlib-1.3 fix pending upstream inclusion 29 # https://github.com/python-pillow/Pillow/pull/7344 30 (fetchpatch { 31 name = "zlib-1.3.patch"; 32 url = "https://github.com/python-pillow/Pillow/commit/9ef7cb39def45b0fe1cdf4828ca20838a1fc39d1.patch"; 33 hash = "sha256-N7V6Xz+SBHSm3YIgmbty7zbqkv8MzpLMhU4Xxerhx8w="; 34 }) 35 ]; 36 37 passthru.tests = { 38 inherit imageio matplotlib pilkit pydicom reportlab; 39 }; 40 41 meta = with lib; { 42 homepage = "https://python-pillow.org/"; 43 description = "The friendly PIL fork (Python Imaging Library)"; 44 longDescription = '' 45 The Python Imaging Library (PIL) adds image processing 46 capabilities to your Python interpreter. This library 47 supports many file formats, and provides powerful image 48 processing and graphics capabilities. 49 ''; 50 license = licenses.hpnd; 51 maintainers = with maintainers; [ goibhniu prikhi ]; 52 }; 53} // args )