Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 buildPythonPackage, 5 pythonOlder, 6 fetchPypi, 7 isPyPy, 8 defusedxml, 9 olefile, 10 freetype, 11 libjpeg, 12 zlib, 13 libtiff, 14 libwebp, 15 libxcrypt, 16 tcl, 17 lcms2, 18 tk, 19 libX11, 20 libxcb, 21 openjpeg, 22 libimagequant, 23 numpy, 24 pytestCheckHook, 25 setuptools, 26 # for passthru.tests 27 imageio, 28 matplotlib, 29 pilkit, 30 pydicom, 31 reportlab, 32 sage, 33}@args: 34 35import ./generic.nix ( 36 rec { 37 pname = "pillow"; 38 version = "10.3.0"; 39 format = "pyproject"; 40 41 disabled = pythonOlder "3.8"; 42 43 src = fetchPypi { 44 pname = "pillow"; 45 inherit version; 46 hash = "sha256-nSRV+/RMkUhAx5PomqgtDhdjoUJToAB0NxmuWUaBSy0="; 47 }; 48 49 passthru.tests = { 50 inherit 51 imageio 52 matplotlib 53 pilkit 54 pydicom 55 reportlab 56 sage 57 ; 58 }; 59 60 meta = with lib; { 61 homepage = "https://python-pillow.org/"; 62 description = "Friendly PIL fork (Python Imaging Library)"; 63 longDescription = '' 64 The Python Imaging Library (PIL) adds image processing 65 capabilities to your Python interpreter. This library 66 supports many file formats, and provides powerful image 67 processing and graphics capabilities. 68 ''; 69 license = licenses.hpnd; 70 maintainers = with maintainers; [ prikhi ]; 71 }; 72 } 73 // args 74)