biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / pillow / default.nix
blobb5257f5101d2c719fb5358f19729a0009e31831d
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:
35 import ./generic.nix (
36   rec {
37     pname = "pillow";
38     version = "10.4.0";
39     format = "pyproject";
41     disabled = pythonOlder "3.8";
43     src = fetchPypi {
44       pname = "pillow";
45       inherit version;
46       hash = "sha256-Fmwc1NJDCbMNYfefSpEUt7IxPXRQkSJ3hV/139fNSgY=";
47     };
49     passthru.tests = {
50       inherit
51         imageio
52         matplotlib
53         pilkit
54         pydicom
55         reportlab
56         sage
57         ;
58     };
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