2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitLab,
|
|
|
|
pythonOlder,
|
|
|
|
plum-py,
|
|
|
|
pytestCheckHook,
|
|
|
|
baseline,
|
2023-05-24 13:37:59 +00:00
|
|
|
}:
|
2021-04-12 18:23:04 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "exif";
|
2023-05-24 13:37:59 +00:00
|
|
|
version = "1.6.0";
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2021-04-12 18:23:04 +00:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "TNThieding";
|
|
|
|
repo = "exif";
|
2023-05-24 13:37:59 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-uiHL3m0C6+YnAHRLwzMCSzffrQsSyVcuem6FBtTLxek=";
|
2021-04-12 18:23:04 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs = [ plum-py ];
|
2021-04-12 18:23:04 +00:00
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
baseline
|
|
|
|
];
|
2021-04-12 18:23:04 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "exif" ];
|
2022-12-02 08:20:57 +00:00
|
|
|
|
2021-04-12 18:23:04 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Read and modify image EXIF metadata using Python";
|
2023-05-24 13:37:59 +00:00
|
|
|
homepage = "https://gitlab.com/TNThieding/exif";
|
|
|
|
changelog = "https://gitlab.com/TNThieding/exif/-/blob/v${version}/docs/release_notes.rst";
|
|
|
|
license = licenses.mit;
|
2021-04-12 18:23:04 +00:00
|
|
|
maintainers = with maintainers; [ dnr ];
|
|
|
|
};
|
|
|
|
}
|