Merge pull request #300749 from zebreus/init-photini

photini: init at 2024.2.1
This commit is contained in:
Sandro 2024-06-26 00:43:23 +02:00 committed by GitHub
commit d2076f15a6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 101 additions and 1 deletions

View file

@ -0,0 +1,48 @@
{
lib,
fetchFromGitHub,
python3Packages,
gitUpdater,
}:
python3Packages.buildPythonApplication rec {
pname = "photini";
version = "2024.5.0";
pyproject = true;
src = fetchFromGitHub {
owner = "jim-easterbrook";
repo = "Photini";
rev = "refs/tags/${version}";
hash = "sha256-iTaFyQpC585QPInLvFzgk65+Znvb1kTTsrzEQvy1quY=";
};
build-system = with python3Packages; [ setuptools-scm ];
dependencies = with python3Packages; [
pyqt6
pyqt6-webengine
cachetools
appdirs
chardet
exiv2
filetype
requests
requests-oauthlib
requests-toolbelt
pyenchant
gpxpy
keyring
pillow
];
passthru.updateScript = gitUpdater { };
meta = {
homepage = "https://github.com/jim-easterbrook/Photini";
changelog = "https://photini.readthedocs.io/en/release-${version}/misc/changelog.html";
description = "An easy to use digital photograph metadata (Exif, IPTC, XMP) editing application";
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ zebreus ];
mainProgram = "photini";
};
}

View file

@ -0,0 +1,46 @@
{
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 ];
};
}

View file

@ -4033,6 +4033,10 @@ self: super: with self; {
exifread = callPackage ../development/python-modules/exifread { };
exiv2 = callPackage ../development/python-modules/exiv2 {
inherit (pkgs) exiv2;
};
expandvars = callPackage ../development/python-modules/expandvars { };
expects = callPackage ../development/python-modules/expects { };
@ -10695,7 +10699,9 @@ self: super: with self; {
py3buddy = toPythonModule (callPackage ../development/python-modules/py3buddy { });
py3exiv2 = callPackage ../development/python-modules/py3exiv2 { };
py3exiv2 = callPackage ../development/python-modules/py3exiv2 {
inherit (pkgs) exiv2;
};
py3langid = callPackage ../development/python-modules/py3langid { };