2022-04-09 21:58:53 +02:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, pythonOlder
|
|
|
|
, fetchPypi
|
|
|
|
, isPyPy
|
2022-10-07 03:55:32 +02:00
|
|
|
, defusedxml, olefile, freetype, libjpeg, zlib, libtiff, libwebp, libxcrypt, tcl, lcms2, tk, libX11
|
2023-08-25 20:07:09 +02:00
|
|
|
, libxcb, openjpeg, libimagequant, pyroma, numpy, pytestCheckHook, setuptools
|
2022-02-12 20:42:34 +01:00
|
|
|
# for passthru.tests
|
|
|
|
, imageio, matplotlib, pilkit, pydicom, reportlab
|
2021-01-01 06:43:07 +01:00
|
|
|
}@args:
|
2020-06-01 21:20:13 +02:00
|
|
|
|
2021-01-01 06:43:07 +01:00
|
|
|
import ./generic.nix (rec {
|
2022-04-09 21:58:53 +02:00
|
|
|
pname = "pillow";
|
2023-11-11 12:44:52 +01:00
|
|
|
version = "10.1.0";
|
2023-07-26 17:22:33 +02:00
|
|
|
format = "pyproject";
|
2020-06-01 21:20:13 +02:00
|
|
|
|
2023-07-26 17:22:33 +02:00
|
|
|
disabled = pythonOlder "3.8";
|
2017-07-12 12:28:55 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2022-04-09 21:58:53 +02:00
|
|
|
pname = "Pillow";
|
|
|
|
inherit version;
|
2023-11-11 12:44:52 +01:00
|
|
|
hash = "sha256-5r+N5sNu2WyG6jtuHVJzxT9G71GKBiRkzX713Sz5Ljg=";
|
2017-07-12 12:28:55 +02:00
|
|
|
};
|
|
|
|
|
2022-02-12 20:42:34 +01:00
|
|
|
passthru.tests = {
|
|
|
|
inherit imageio matplotlib pilkit pydicom reportlab;
|
|
|
|
};
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-06-06 11:21:00 +02:00
|
|
|
homepage = "https://python-pillow.org/";
|
|
|
|
description = "The friendly PIL fork (Python Imaging Library)";
|
2017-07-12 12:28:55 +02:00
|
|
|
longDescription = ''
|
|
|
|
The Python Imaging Library (PIL) adds image processing
|
|
|
|
capabilities to your Python interpreter. This library
|
|
|
|
supports many file formats, and provides powerful image
|
|
|
|
processing and graphics capabilities.
|
|
|
|
'';
|
2021-02-03 18:44:05 +01:00
|
|
|
license = licenses.hpnd;
|
2023-07-23 19:30:22 +02:00
|
|
|
maintainers = with maintainers; [ goibhniu prikhi ];
|
2017-07-12 12:28:55 +02:00
|
|
|
};
|
2021-01-01 06:43:07 +01:00
|
|
|
} // args )
|