From f01831ad50beeeac8f8c0c814139da2ebce435bd Mon Sep 17 00:00:00 2001 From: Dan Callahan Date: Wed, 21 Dec 2022 22:29:18 +0000 Subject: [PATCH] python3Packages.pyheif: init at 0.7.1 --- .../python-modules/pyheif/default.nix | 25 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 27 insertions(+) create mode 100644 pkgs/development/python-modules/pyheif/default.nix diff --git a/pkgs/development/python-modules/pyheif/default.nix b/pkgs/development/python-modules/pyheif/default.nix new file mode 100644 index 000000000000..828847cf82fb --- /dev/null +++ b/pkgs/development/python-modules/pyheif/default.nix @@ -0,0 +1,25 @@ +{ lib +, buildPythonPackage +, fetchPypi +, cffi +, libheif +}: + +buildPythonPackage rec { + pname = "pyheif"; + version = "0.7.1"; + + src = fetchPypi { + inherit pname version; + hash = "sha256-hqXFF0N51xRrXtGmiJL69yaKE1+39QOaARv7em6QMgA="; + }; + + propagatedBuildInputs = [ cffi libheif ]; + + meta = with lib; { + homepage = "https://github.com/carsales/pyheif"; + description = "Python interface to libheif library"; + license = licenses.asl20; + maintainers = with maintainers; [ ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index cb3895d6224a..2a3c64f6ac17 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -7995,6 +7995,8 @@ self: super: with self; { pyhs100 = callPackage ../development/python-modules/pyhs100 { }; + pyheif = callPackage ../development/python-modules/pyheif { }; + pyi2cflash = callPackage ../development/python-modules/pyi2cflash { }; pyialarm = callPackage ../development/python-modules/pyialarm { };