From c635555165b1b54e76b5e9d9033ebcb9cc0db922 Mon Sep 17 00:00:00 2001 From: Nicolas Graves Date: Thu, 25 Dec 2025 16:30:13 +0100 Subject: [PATCH] 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 Signed-off-by: Rutherther --- 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 1ecda862c9fb2ff5789aad01b8ed46f8b4ebb1e7..2b1c20ad80ed5a81f0bf03c062ceafaabb0a0efa 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")