depot/third_party/nixpkgs/pkgs/development/python-modules/exiv2/default.nix
Default email 98eb3e9ef5 Project import generated by Copybara.
GitOrigin-RevId: 00d80d13810dbfea8ab4ed1009b09100cca86ba8
2024-07-01 15:47:52 +00:00

46 lines
1 KiB
Nix

{
lib,
pkg-config,
exiv2,
python3Packages,
fetchFromGitHub,
gitUpdater,
}:
python3Packages.buildPythonPackage rec {
pname = "exiv2";
version = "0.16.3";
pyproject = true;
src = fetchFromGitHub {
owner = "jim-easterbrook";
repo = "python-exiv2";
rev = "refs/tags/${version}";
hash = "sha256-DX0pg80fOSkWqrIvcye0btZGglnizzM9ZEuVEpnEJKQ=";
};
build-system = with python3Packages; [
setuptools
toml
];
nativeBuildInputs = [ pkg-config ];
buildInputs = [ exiv2 ];
pythonImportsCheck = [ "exiv2" ];
nativeCheckInputs = with python3Packages; [ unittestCheckHook ];
unittestFlagsArray = [
"-s"
"tests"
"-v"
];
passthru.updateScript = gitUpdater { };
meta = {
description = "Low level Python interface to the Exiv2 C++ library";
homepage = "https://github.com/jim-easterbrook/python-exiv2";
changelog = "https://python-exiv2.readthedocs.io/en/release-${version}/misc/changelog.html";
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ zebreus ];
};
}