summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorNguyễn Gia Phong <cnx@loang.net>2026-02-14 23:57:51 +0900
committerLiliana Marie Prikler <liliana.prikler@gmail.com>2026-03-26 06:35:28 +0100
commitb8a892a2be8c2a0e775311954c5efd69e65c8793 (patch)
tree651694f70aba0a694bfa65048a5791776f542ed4 /gnu
parent3dc27a16853cf84ec5f0f81f2aaf6da06a25e8dd (diff)
gnu: Add python-pyudorandom.
* gnu/packages/python-xyz.scm (python-pyudorandom): New variable. Change-Id: Ic9ad281e9df29499e2b8192d79f99bc26c1f2e7b Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/python-xyz.scm31
1 files changed, 31 insertions, 0 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 5fb839e6c85..47636767d14 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -13602,6 +13602,37 @@ write a wide range of image data, including animated images, video, volumetric
data, and scientific formats.")
(license license:bsd-2)))
+(define-public python-pyudorandom
+ ;; Releases are not tagged in Git:
+ ;; https://github.com/mewwts/pyudorandom/issues/3
+ (let ((commit "473b3f9c562469dd3c3ddbdfa3e9351e7709812c")
+ (revision "0"))
+ (package
+ (name "python-pyudorandom")
+ (version (git-version "1.0.0" revision commit))
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/mewwts/pyudorandom")
+ (commit commit)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0k54lxlmh56n8l60hhigi57y8dycnmfw700vq6diqn8b30xna47c"))))
+ (build-system pyproject-build-system)
+ (arguments (list #:test-backend #~'unittest))
+ (native-inputs (list python-setuptools))
+ (home-page "https://github.com/mewwts/pyudorandom")
+ (synopsis "Generate pseudorandom numbers by using algebra")
+ (description
+ "The @code{pyudorandom} module lets you iterate over a list
+in a non-succsessive, yet deterministic way based on interger modulo.
+It comes in handy when you want to mix up the items, but don't need
+any guarantees of randomness. It might be slow on small data,
+but shall be significantly faster than @code{random.shuffle}
+for longer lists.")
+ (license license:expat))))
+
(define-public python-pyvips
(package
(name "python-pyvips")