summaryrefslogtreecommitdiff
path: root/gnu/packages/python-xyz.scm
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2025-12-25 16:30:13 +0100
committerRutherther <rutherther@ditigal.xyz>2026-01-25 21:23:04 +0100
commitc635555165b1b54e76b5e9d9033ebcb9cc0db922 (patch)
tree0f5d29f82826330f53ea173dd95e3336a94b987c /gnu/packages/python-xyz.scm
parentd97c6939638af9cf599ffc58477b7940c9f0b58e (diff)
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 <sharlatanus@gmail.com> Signed-off-by: Rutherther <rutherther@ditigal.xyz>
Diffstat (limited to 'gnu/packages/python-xyz.scm')
-rw-r--r--gnu/packages/python-xyz.scm24
1 files changed, 24 insertions, 0 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 1ecda862c9f..2b1c20ad80e 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")