From 54467b917baccc216f199d976aab3fd31d99b755 Mon Sep 17 00:00:00 2001 From: Nicolas Graves Date: Mon, 22 Dec 2025 23:47:04 +0100 Subject: [PATCH] gnu: Add python-verlib2. * gnu/packages/python-xyz.scm (python-verlib2): New variable. Change-Id: I31d5404d098d43d2d874b04bafab412a079cb58b Signed-off-by: Sharlatan Hellseher --- 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 b656e669c57b4242d1a672ad2bf7a00b29fc4f5a..340224d81ed815636f0cb61adc7cb1cb5d4edb53 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -40079,6 +40079,30 @@ and highlight matching sections.") add the log levels NOTICE, SPAM, SUCCESS and VERBOSE.") (license license:expat))) +(define-public python-verlib2 + (package + (name "python-verlib2") + (version "0.3.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/pyveci/verlib2") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1xp0qfzy4l4fs1rn1670fbf7d7xv1p2s3rplspx8xqszjd5j0n8c")))) + (build-system pyproject-build-system) + (propagated-inputs (list python-importlib-metadata)) + (native-inputs + (list python-pretend python-pytest python-pytest-cov python-setuptools)) + (home-page "https://github.com/pyveci/verlib2") + (synopsis "Python versioning utilities") + (description + "This package provides a standalone variant of @code{distutils.version} and +@code{packaging.version}, without anything else.") + (license license:bsd-2))) + ;; XXX: No updates since 2018, consider to remove when fails to build, it's a ;; leaf package. (define-public python-version