From df5a13303eb0e26154f1963cb879ae2fa6d58fac Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Tue, 26 Sep 2023 17:13:23 +0200 Subject: [PATCH] python311Packages.willow: configure heif extra --- .../python-modules/willow/default.nix | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/pkgs/development/python-modules/willow/default.nix b/pkgs/development/python-modules/willow/default.nix index 0fc9b58fb704..1787faa38905 100644 --- a/pkgs/development/python-modules/willow/default.nix +++ b/pkgs/development/python-modules/willow/default.nix @@ -10,6 +10,9 @@ , filetype , defusedxml +# optional-dependencies +, pillow-heif + # tests , numpy , opencv4 @@ -43,7 +46,7 @@ buildPythonPackage rec { passthru.optional-dependencies = { heif = [ - # TODO: pillow-heif + pillow-heif ]; }; @@ -53,18 +56,7 @@ buildPythonPackage rec { pytestCheckHook pillow wand - ]; - - disabledTests = [ - # pillow-heif missing - "test_avif" - "test_heic" - "test_heif" - "test_save_as_avif" - "test_save_as_heif" - "test_save_as_heic" - "test_detect_faces" - ]; + ] ++ passthru.optional-dependencies.heif; meta = with lib; { description = "A Python image library that sits on top of Pillow, Wand and OpenCV";