49 lines
954 B
Nix
49 lines
954 B
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
buildPythonPackage,
|
|
exiv2,
|
|
boost,
|
|
pybind11,
|
|
setuptools,
|
|
...
|
|
}: let
|
|
pname = "pyexiv2";
|
|
version = "2.15.3";
|
|
in
|
|
buildPythonPackage {
|
|
inherit pname version;
|
|
|
|
pyproject = true;
|
|
build-system = [setuptools];
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "LeoHsiao1";
|
|
repo = "pyexiv2";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-83bFMaoXncvhRJNcCgkkC7B29wR5pjuLO/EdkQdqxxo=";
|
|
};
|
|
|
|
buildInputs = [
|
|
exiv2
|
|
boost
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
pybind11
|
|
];
|
|
|
|
# Skip tests as they may require specific test images
|
|
doCheck = false;
|
|
|
|
# Disable runtime dependencies check initially
|
|
dontCheckRuntimeDeps = true;
|
|
|
|
meta = with lib; {
|
|
description = "Python binding to the library exiv2";
|
|
homepage = "https://github.com/LeoHsiao1/pyexiv2";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = [];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|