From 3aeaf1da4585389a0cdacb0ec2f1c95a5f0937a8 Mon Sep 17 00:00:00 2001 From: Nicolas Graves Date: Sat, 22 Nov 2025 19:20:01 +0100 Subject: [PATCH] gnu: python-pymonad: Switch to pyproject. * gnu/packages/python-xyz.scm (python-pymonad): [source, arguments]: Run guix style. [build-system]: Switch to pyproject-build-system. [native-inputs]: Add python-setuptools. Change-Id: I28fe224a9533e9c32dc2f5e799b1358001bbdd0d Signed-off-by: Sharlatan Hellseher --- gnu/packages/python-xyz.scm | 35 ++++++++++++++++++----------------- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index dc9e7d064b451617017f474eb5157521ac6d8a0f..9f2af415b222ba9bd3c7f264fc17260cf599a896 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -35814,24 +35814,25 @@ Storage}.") (package (name "python-pymonad") (version "2.4.0") - ;; The tests are incomplete in the PyPI archive. - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/jasondelaat/pymonad") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "0ci1mpydldiyg9qv6d19ljhfh7wxlrl2k4mlvqd9bm7dqvpdjsx7")))) - (build-system python-build-system) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/jasondelaat/pymonad") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0ci1mpydldiyg9qv6d19ljhfh7wxlrl2k4mlvqd9bm7dqvpdjsx7")))) + (build-system pyproject-build-system) (arguments - `(#:phases - (modify-phases %standard-phases - (replace 'check - (lambda* (#:key tests? #:allow-other-keys) - (when tests? - (invoke "./run_tests.sh"))))))) + (list + #:phases + #~(modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "./run_tests.sh"))))))) + (native-inputs (list python-setuptools)) (home-page "https://github.com/jasondelaat/pymonad") (synopsis "Monadic style functional programming for Python") (description "@code{python-pymonad} implements data structures typically