guix_mirror_bot pushed a commit to branch python-team
in repository guix.

commit eb7b82ba751a34b2da65de812ce84f2b8cd2ffc2
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Tue Jan 6 23:32:48 2026 +0000

    gnu: Add python-uuid6.
    
    * gnu/packages/python-xyz.scm (python-uuid6): New variable.
    
    Change-Id: I3bf9d83706763ac3ed360005831dbfa3f775c368
---
 gnu/packages/python-xyz.scm | 37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 062bdf4b8d..88ddc70337 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -39970,6 +39970,43 @@ user-space file systems in Python.")
 which make common patterns shorter and easier.")
     (license license:bsd-2)))
 
+(define-public python-uuid6
+  (package
+    (name "python-uuid6")
+    (version "2025.0.1")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/oittaa/uuid6-python";)
+             (commit version)))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0xawnq7b0vzcvrw50jfdagn4a2javyav108hlpf31kbn7rn03jhk"))))
+    (build-system pyproject-build-system)
+    (arguments
+     (list
+      #:test-flags
+      ;; Test is time based: AssertionError: 13987034766.015247 !=
+      ;; 13987034766.01471 within 3 places (0.000537872314453125 difference)
+      #~(list "--deselect=test/test_uuid6.py::UUIDTests::test_time")
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'unpack 'set-version
+            (lambda _
+              (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version))))))
+    (native-inputs
+     (list python-pytest
+           python-setuptools
+           python-setuptools-scm))
+    (home-page "https://github.com/oittaa/uuid6-python";)
+    (synopsis "Time-based UUID formats which are suited for use as a database 
key")
+    (description
+     "This module extends immutable UUID objects (the UUID class) with the
+functions @code{uuid6()}, @code{uuid7()}, and @code{uuid8()} from the proposed
+@url{https://datatracker.ietf.org/doc/rfc9562/, IETF RFC 9562}.")
+    (license license:expat)))
+
 (define-public python-validate-email
   (package
     (name "python-validate-email")

Reply via email to