diff options
author | Nicolas Graves <ngraves@ngraves.fr> | 2025-03-31 08:18:42 +0200 |
---|---|---|
committer | Andreas Enge <andreas@enge.fr> | 2025-04-16 11:46:25 +0200 |
commit | ce93d3697d12d23c02bafee8e1d93c2083d2c828 (patch) | |
tree | 59e943c53af567b030dddcd6f3732f41019cdf39 /gnu/packages/python-xyz.scm | |
parent | a5d3be8a89548aebcd7f2ac445a36912dcb3015c (diff) |
gnu: python-rstr: Update to 3.2.2. Enable tests.
* gnu/packages/python-xyz.scm (python-rstr): Update to 3.2.2.
[source]: Switch to git-fetch.
[build-system]: Switch to pyproject-build-system.
[arguments]{phases}: Add phase 'pretend-version.
[native-inputs]: Add python-pytest, python-setuptools,
python-setuptools-scm, python-wheel.
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages/python-xyz.scm')
-rw-r--r-- | gnu/packages/python-xyz.scm | 30 |
1 files changed, 23 insertions, 7 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 3a8d1b8c32..9c62804483 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -8943,15 +8943,31 @@ or for visual regression testing purposes.") (define-public python-rstr (package (name "python-rstr") - (version "2.2.6") + (version "3.2.2") (source (origin - (method url-fetch) - (uri (pypi-uri "rstr" version)) - (sha256 - (base32 - "197dw8mbq0pjjz1l6h1ksi62vgn7x55d373ch74y06744qiq5sjx")))) - (build-system python-build-system) + (method git-fetch) + (uri (git-reference + (url "https://github.com/leapfrogonline/rstr") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1z9d660jnv72jn8qzpa9hddpv5f953js8i75hfhkcw68vmdfndnr")))) + (build-system pyproject-build-system) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + (add-before 'build 'pretend-version + ;; The version string is usually derived via setuptools-scm, but + ;; without the git metadata available, the version string is set to + ;; '0.0.0'. + (lambda _ + (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version)))))) + (native-inputs (list python-pytest + python-setuptools + python-setuptools-scm + python-wheel)) (home-page "https://github.com/leapfrogonline/rstr") (synopsis "Generate random strings in Python") (description "This package provides a python module for generating |