Commit 0f24b240 authored by Daniel Løvbrøtte Olsen's avatar Daniel Løvbrøtte Olsen Committed by Yt
Browse files

python3Packages.pillow-heif: init at 0.13.0

parent 350b6b84
Loading
Loading
Loading
Loading
+41 −0
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchFromGitHub
, cmake
, pillow
, pytest
, nasm
, libheif
, libaom
, libde265
, x265
}:

buildPythonPackage rec {
  pname = "pillow_heif";
  version = "0.13.0";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "bigcat88";
    repo = "pillow_heif";
    rev = "refs/tags/v${version}";
    hash = "sha256-GbOW29rGpLMS7AfShuO6UCzcspdHtFS7hyNKori0otI=";
  };

  nativeBuildInputs = [ cmake nasm ];
  buildInputs = [ libheif libaom libde265 x265 ];
  propagatedBuildInputs = [ pillow ];
  nativeCheckInputs = [ pytest ];

  dontUseCmakeConfigure = true;

  pythonImportsCheck = [ "pillow_heif" ];

  meta = {
    description = "Python library for working with HEIF images and plugin for Pillow";
    homepage = "https://github.com/bigcat88/pillow_heif";
    license = with lib.licenses; [ bsd3 lgpl3 ];
    maintainers = with lib.maintainers; [ dandellion ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -8190,6 +8190,8 @@ self: super: with self; {
    inherit (pkgs.xorg) libX11 libxcb;
  };
  pillow-heif = callPackage ../development/python-modules/pillow-heif { };
  pillow-simd = callPackage ../development/python-modules/pillow-simd {
      inherit (pkgs) freetype libjpeg zlib libtiff libwebp tcl lcms2 tk;
      inherit (pkgs.xorg) libX11;