mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
Merge pull request #300749 from zebreus/init-photini
photini: init at 2024.2.1
This commit is contained in:
commit
d2076f15a6
3 changed files with 101 additions and 1 deletions
48
pkgs/by-name/ph/photini/package.nix
Normal file
48
pkgs/by-name/ph/photini/package.nix
Normal 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";
|
||||
};
|
||||
}
|
46
pkgs/development/python-modules/exiv2/default.nix
Normal file
46
pkgs/development/python-modules/exiv2/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
|
@ -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 { };
|
||||
|
||||
|
|
Loading…
Reference in a new issue