python311Packages.pillow-heif: fix pname, enable more tests, reformat

This commit is contained in:
Martin Weinelt
2023-09-27 15:35:24 +02:00
parent 605ea5541a
commit 1a7bfd884c
@@ -1,18 +1,29 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
# build-system
, cmake
, pillow
, pytest
, nasm
# native dependencies
, libheif
, libaom
, libde265
, x265
# dependencies
, pillow
# tests
, opencv4
, numpy
, pympler
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "pillow_heif";
pname = "pillow-heif";
version = "0.13.0";
format = "setuptools";
@@ -23,16 +34,37 @@ buildPythonPackage rec {
hash = "sha256-GbOW29rGpLMS7AfShuO6UCzcspdHtFS7hyNKori0otI=";
};
nativeBuildInputs = [ cmake nasm ];
buildInputs = [ libheif libaom libde265 x265 ];
propagatedBuildInputs = [ pillow ];
nativeCheckInputs = [ pytest ];
nativeBuildInputs = [
cmake
nasm
];
dontUseCmakeConfigure = true;
pythonImportsCheck = [ "pillow_heif" ];
buildInputs = [
libaom
libde265
libheif
x265
];
propagatedBuildInputs = [
pillow
];
pythonImportsCheck = [
"pillow_heif"
];
nativeCheckInputs = [
opencv4
numpy
pympler
pytestCheckHook
];
meta = {
changelog = "https://github.com/bigcat88/pillow_heif/releases/tag/v${version}";
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 ];