26 buildPythonPackage rec {
27 pname = "pillow-heif";
29 format = "setuptools";
31 src = fetchFromGitHub {
34 rev = "refs/tags/v${version}";
35 hash = "sha256-GbOW29rGpLMS7AfShuO6UCzcspdHtFS7hyNKori0otI=";
39 sed -i '/addopts/d' pyproject.toml
47 dontUseCmakeConfigure = true;
56 propagatedBuildInputs = [
60 pythonImportsCheck = [
71 disabledTests = lib.optionals stdenv.isDarwin [
72 # https://github.com/bigcat88/pillow_heif/issues/89
73 # not reproducible in nixpkgs
75 ] ++ lib.optionals (stdenv.isLinux && stdenv.isAarch64) [
76 # RuntimeError: Encoder plugin generated an error: Unsupported bit depth: Bit depth not supported by x265
77 "test_open_heif_compare_non_standard_modes_data"
78 "test_open_save_disable_16bit"
79 "test_save_bgr_16bit_to_10_12_bit"
80 "test_save_bgra_16bit_to_10_12_bit"
81 "test_premultiplied_alpha"
83 "test_I_color_modes_to_10_12_bit"
87 changelog = "https://github.com/bigcat88/pillow_heif/releases/tag/v${version}";
88 description = "Python library for working with HEIF images and plugin for Pillow";
89 homepage = "https://github.com/bigcat88/pillow_heif";
90 license = with lib.licenses; [ bsd3 lgpl3 ];
91 maintainers = with lib.maintainers; [ dandellion ];