1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 cffi,
7 libheif,
8 piexif,
9 pillow,
10 pytestCheckHook,
11}:
12
13buildPythonPackage rec {
14 pname = "pyheif";
15 version = "0.8.0";
16 pyproject = true;
17
18 src = fetchFromGitHub {
19 owner = "carsales";
20 repo = "pyheif";
21 tag = "release-${version}";
22 hash = "sha256-7De8ekDceSkUcOgK7ppKad5W5qE0yxdS4kbgYVjxTGg=";
23 };
24
25 build-system = [ setuptools ];
26
27 buildInputs = [ libheif ];
28
29 dependencies = [ cffi ];
30
31 pythonImportsCheck = [ "pyheif" ];
32
33 nativeCheckInputs = [
34 piexif
35 pillow
36 pytestCheckHook
37 ];
38
39 meta = with lib; {
40 homepage = "https://github.com/carsales/pyheif";
41 description = "Python interface to libheif library";
42 license = licenses.asl20;
43 maintainers = [ ];
44 };
45}