summaryrefslogtreecommitdiff
path: root/gnu/packages/python-xyz.scm
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2025-12-07 10:47:14 +0000
committerRutherther <rutherther@ditigal.xyz>2026-01-25 21:18:28 +0100
commitd855d82eb21589008eeebe2da26f513fa8fc0706 (patch)
tree6f80af68b93031ee0c718d2647722194f1cbe556 /gnu/packages/python-xyz.scm
parent5de81642cf072385fa0932a1dfa03d6925099622 (diff)
gnu: python-xmp-toolkit: Update to 2.1.0.
* gnu/packages/python-xyz.scm (python-xmp-toolkit): Update to 2.1.0. [source]: Remove patch as applied upstream. [arguments] <test-flags>: Run all tests. <phases>: Remove 'configure-environment; add 'patch-source. [native-inputs]: Remove python-setuptools and python-wheel; add python-flit-core. * gnu/packages/patches/python-xmp-toolkit-add-missing-error-codes.patch: Delete file. * gnu/local.mk (dist_patch_DATA): Deregister patch. Change-Id: I3443ecd6ad2bd423544d06d1e6e0de7079ed6296 Signed-off-by: Rutherther <rutherther@ditigal.xyz>
Diffstat (limited to 'gnu/packages/python-xyz.scm')
-rw-r--r--gnu/packages/python-xyz.scm35
1 files changed, 16 insertions, 19 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 0c97e9f45cc..fe05208be05 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -41326,34 +41326,31 @@ Library.")
(define-public python-xmp-toolkit
(package
(name "python-xmp-toolkit")
- (version "2.0.2")
+ (version "2.1.0")
(source
(origin
(method url-fetch)
- (uri (pypi-uri "python-xmp-toolkit" version))
+ (uri (pypi-uri "python_xmp_toolkit" version))
(sha256
- (base32 "12x6lyaxjpbl8ll3cj97039kwvsha2nkx2v8v8irfbi2p0dl721s"))
- (patches (search-patches
- "python-xmp-toolkit-add-missing-error-codes.patch"))))
+ (base32 "1np2njq6c1fnxh6bbh3xp2slz5dm7aamknv7hxax53a11p3a42na"))))
(build-system pyproject-build-system)
(arguments
(list
- #:test-flags
- #~(list "-k" (string-append "not test_can_put_xmp and "
- "not test_exempi_bad_combinations and "
- "not test_formats and "
- "not test_get_xmp and "
- "not test_open_file_with_options"))
#:phases
#~(modify-phases %standard-phases
- (add-before 'build 'configure-environment
- (lambda* (#:key outputs inputs #:allow-other-keys)
- (let ((exempi #$(this-package-input "exempi")))
- (setenv "LD_LIBRARY_PATH"
- (string-append exempi "/lib"))))))))
- (inputs (list exempi))
- (propagated-inputs (list python-pytz))
- (native-inputs (list python-pytest python-setuptools python-wheel))
+ (add-after 'unpack 'patch-source
+ (lambda* (#:key inputs #:allow-other-keys)
+ (substitute* "libxmp/exempi.py"
+ (("ctypes.util.find_library\\('exempi'\\)")
+ (format #f "~s" (search-input-file
+ inputs "lib/libexempi.so")))))))))
+ (native-inputs
+ (list python-pytest
+ python-flit-core))
+ (inputs
+ (list exempi))
+ (propagated-inputs
+ (list python-pytz))
(home-page "https://github.com/python-xmp-toolkit/python-xmp-toolkit")
(synopsis "Python XMP Toolkit for working with metadata")
(description "Python XMP Toolkit is a library for working with XMP