guix_mirror_bot pushed a commit to branch next-master
in repository guix.
commit e7d64d2cc6e65e16256aabb7f606959abca09a1f
Author: Nicolas Graves <[email protected]>
AuthorDate: Thu Dec 25 16:30:13 2025 +0100
gnu: Add python-importlib-metadata-argparse-version.
* gnu/packages/python-xyz.scm (python-importlib-metadata-argparse-version):
New variable.
Change-Id: I729aac550bdbd20a76e9f8832131b38aea56a61c
Signed-off-by: Sharlatan Hellseher <[email protected]>
---
gnu/packages/python-xyz.scm | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index d2d3595f25..9d1926e2cf 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -14364,6 +14364,30 @@ its top-level name. This functionality intends to
replace most uses of
need to use the older and less efficient @code{pkg_resources} package.")
(license license:asl2.0)))
+(define-public python-importlib-metadata-argparse-version
+ (package
+ (name "python-importlib-metadata-argparse-version")
+ (version "2.0.1")
+ (home-page
+ "https://github.com/mondeja/importlib-metadata-argparse-version")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url home-page)
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "02jbfv7xkd4lhdcsr232b6x8xcpv93micz7848fhi5946grvm1j2"))))
+ (build-system pyproject-build-system)
+ (native-inputs (list python-pytest python-hatchling))
+ (synopsis "Get Python package version more efficiently")
+ (description
+ "This package provides an @code{argparse} action to define CLI version
+with a delayed call to @code{importlib.metadata}, avoiding to load this module
+when not needed.")
+ (license license:bsd-3)))
+
(define-public python-importmagic
(package
(name "python-importmagic")