python312Packages.flask-allowed-hosts: 1.1.2 -> 1.2.0 (#361132)
[NixPkgs.git] / pkgs / development / python-modules / willow / default.nix
blob367a615f9c27ae19ce4a1092a128c8c129ac7baa
2   lib,
3   buildPythonPackage,
4   defusedxml,
5   fetchFromGitHub,
6   filetype,
7   flit-core,
8   numpy,
9   opencv4,
10   pillow-heif,
11   pillow,
12   pytestCheckHook,
13   pythonOlder,
14   wand,
17 buildPythonPackage rec {
18   pname = "willow";
19   version = "1.9.0";
20   pyproject = true;
22   disabled = pythonOlder "3.9";
24   src = fetchFromGitHub {
25     owner = "wagtail";
26     repo = "Willow";
27     rev = "refs/tags/v${version}";
28     hash = "sha256-H/UXE6gA6x849aqBcUgl3JYZ87OMNpuFyWGSsgqW1Rk=";
29   };
31   build-system = [ flit-core ];
33   pythonRelaxDeps = [ "defusedxml" ];
35   dependencies = [
36     filetype
37     defusedxml
38   ];
40   optional-dependencies = {
41     heif = [ pillow-heif ];
42   };
44   nativeCheckInputs = [
45     numpy
46     opencv4
47     pytestCheckHook
48     pillow
49     wand
50   ] ++ optional-dependencies.heif;
52   meta = with lib; {
53     description = "Python image library that sits on top of Pillow, Wand and OpenCV";
54     homepage = "https://github.com/torchbox/Willow/";
55     changelog = "https://github.com/wagtail/Willow/releases/tag/v${version}";
56     license = licenses.bsd2;
57     maintainers = with maintainers; [ desiderius ];
58   };