[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
06/08: gnu: Add python-random2.
From: |
guix-commits |
Subject: |
06/08: gnu: Add python-random2. |
Date: |
Fri, 20 Mar 2020 17:44:55 -0400 (EDT) |
mbakke pushed a commit to branch master
in repository guix.
commit fe36fdb206be6b189fa0bb5b4eb8074379431612
Author: Marius Bakke <address@hidden>
AuthorDate: Fri Mar 20 22:03:35 2020 +0100
gnu: Add python-random2.
* gnu/packages/python-xyz.scm (python-random2, python2-random2): New public
variables.
---
gnu/packages/python-xyz.scm | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 93b735f..0c7e9e4 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -12163,6 +12163,34 @@ provide extendible implementations of common aspects
of a cloud so that you can
focus on building massively scalable web applications.")
(license license:expat)))
+(define-public python-random2
+ (package
+ (name "python-random2")
+ (version "1.0.1")
+ (source (origin
+ (method url-fetch)
+ (uri (pypi-uri "random2" version ".zip"))
+ (sha256
+ (base32
+ "01y0s4747plsx8fdnxy0nz83dp69naddz58m81r9h0s1qfm31b9l"))))
+ (build-system python-build-system)
+ (native-inputs `(("unzip" ,unzip)))
+ (home-page "http://pypi.python.org/pypi/random2")
+ (synopsis "Python 3 version of the Python 2 @code{random} module")
+ (description
+ "This package provides a Python 3 ported version of Python 2.7’s
+@code{random} module. It has also been back-ported to work in Python 2.6.
+
+In Python 3, the implementation of @code{randrange()} was changed, so that
+even with the same seed you get different sequences in Python 2 and 3.
+
+This package closes that gap, allowing stable random number generation
+between the different Python versions.")
+ (license license:psfl)))
+
+(define-public python2-random2
+ (package-with-python2 python-random2))
+
(define-public python-snowballstemmer
(package
(name "python-snowballstemmer")
- branch master updated (830dab8 -> 51d42ca), guix-commits, 2020/03/20
- 01/08: gnu: python-clikit: Declare Python 2 variant., guix-commits, 2020/03/20
- 02/08: gnu: python-pytzdata: Update to 2019.3., guix-commits, 2020/03/20
- 03/08: gnu: python-pendulum: Update to 2.1.0., guix-commits, 2020/03/20
- 05/08: gnu: Add python-validators., guix-commits, 2020/03/20
- 06/08: gnu: Add python-random2.,
guix-commits <=
- 04/08: gnu: Add python-text-unidecode., guix-commits, 2020/03/20
- 08/08: gnu: python-orator: Update to 0.9.9., guix-commits, 2020/03/20
- 07/08: gnu: Update python-faker to to 4.0.2, python2-faker to 3.0.1., guix-commits, 2020/03/20