Subject: [PATCH] gnu: Add python-awesomeversion.
From: Evgeny Pisemsky <[email-masked]>
To: [email-masked]
Date: Tue, 11 Feb 2025 23:39:04 +0300
List-Id: <debbugs-submit.debbugs.gnu.org>

* gnu/packages/python-xyz.scm (python-awesomeversion): New variable.

Change-Id: I090abfacf7f73ab14ea1e0347211de2a60675128
---
 gnu/packages/python-xyz.scm | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index e4f4fa6887..4c95f150e2 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -3937,6 +3937,31 @@ (define-public python-seedir
 diagrams.")
     (license license:expat)))
 
+(define-public python-awesomeversion
+  (package
+    (name "python-awesomeversion")
+    (version "24.6.0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/ludeeus/awesomeversion")
+             (commit version)))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1kvzhhd2ah0sadlsp5xs3qbiknixq4xwhk3yb6kmhcdl2zcbi4cn"))))
+    (build-system pyproject-build-system)
+    (native-inputs (list python-poetry-core
+                         python-pytest
+                         python-pytest-cov
+                         python-pytest-snapshot))
+    (home-page "https://github.com/ludeeus/awesomeversion")
+    (synopsis "Create and compare version objects")
+    (description
+     "This package provides a way to make anything a version object, and compare
+against a vast section of other version formats.")
+    (license license:expat)))
+
 (define-public python-semantic-version
   (package
     (name "python-semantic-version")

base-commit: d3201247713f4de6d78b899ef6d9014fa9dfc542
-- 
2.48.1