diff options
| author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2026-01-06 23:32:48 +0000 |
|---|---|---|
| committer | Rutherther <rutherther@ditigal.xyz> | 2026-01-25 21:22:00 +0100 |
| commit | f4179e549b7d7feeec2c6509a68434ad8b4529f5 (patch) | |
| tree | 3ffd5c8ef8bddba48417d1a451c47d2cc84db64c /gnu/packages/python-xyz.scm | |
| parent | 6ebda1bd38c56100ce8926be5e2f8f435b90da01 (diff) | |
gnu: Add python-uuid6.
* gnu/packages/python-xyz.scm (python-uuid6): New variable.
Change-Id: I3bf9d83706763ac3ed360005831dbfa3f775c368
Signed-off-by: Rutherther <rutherther@ditigal.xyz>
Diffstat (limited to 'gnu/packages/python-xyz.scm')
| -rw-r--r-- | gnu/packages/python-xyz.scm | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index eb7297f9929..65c06bdc85f 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -39984,6 +39984,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") |
