From c3dcf47254ad1edf9103908f9f6a1a7b4f271345 Mon Sep 17 00:00:00 2001 From: Nicolas Graves Date: Sat, 22 Nov 2025 22:01:37 +0100 Subject: [PATCH] gnu: retux: Switch to pyproject. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/games.scm (retux): [source, arguments, propagated-inputs]: Run guix style. [build-system]: Switch to pyproject-build-system. [native-inputs]: Add python-setuptools. Signed-off-by: Ludovic Courtès --- gnu/packages/games.scm | 59 ++++++++++++++++++++---------------------- 1 file changed, 28 insertions(+), 31 deletions(-) diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index 2cdc85ffaed37d67e087a6a1e23bbe03168ba092..3e5242a79dfef3a08691f2097d757d010c3af4ce 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm @@ -2989,40 +2989,37 @@ dummy solver, it can even solve the hands it has generated for you.") release (string-append release "-" (number->string revision)))) - (source (origin - (method url-fetch) - (uri (string-append "https://github.com/retux-game/retux/" - "releases/download/v" - version "/retux-" - release "-src.zip")) - (sha256 - (base32 - "1fzsjg4k25mxjjc28ykz8n3dx5xzwxnp772fwzz5jy1wrxmjkl4x")))) - (build-system python-build-system) + (source + (origin + (method url-fetch) + (uri (string-append "https://github.com/retux-game/retux/" + "releases/download/v" version + "/retux-" release "-src.zip")) + (sha256 + (base32 "1fzsjg4k25mxjjc28ykz8n3dx5xzwxnp772fwzz5jy1wrxmjkl4x")))) + (build-system pyproject-build-system) (arguments - `(#:tests? #f ; no check target - #:phases - (modify-phases %standard-phases - ;; no setup.py script - (delete 'build) - (replace 'install - (lambda* (#:key outputs #:allow-other-keys) - (let* ((out (assoc-ref outputs "out")) - (bin (string-append out "/bin")) - (data (string-append out "/share/retux"))) - (mkdir-p bin) + (list + #:tests? #f ;no check target + #:phases + #~(modify-phases %standard-phases + ;; no setup.py script + (delete 'build) + (replace 'install + (lambda _ + (let* ((bin (string-append #$output "/bin")) + (data (string-append #$output "/share/retux"))) + (mkdir-p bin) - (substitute* "retux.py" - ;; Use the correct data directory. - (("os\\.path\\.join\\(os\\.path\\.dirname\\(__file__\\), \"data\"\\),") - (string-append "\"" data "\","))) + (substitute* "retux.py" + ;; Use the correct data directory. + (("os\\.path\\.join\\(os\\.path\\.dirname\\(__file__\\), \"data\"\\),") + (string-append "\"" data "\","))) - (copy-file "retux.py" (string-append bin "/retux")) - (copy-recursively "data" data))))))) - (native-inputs - (list unzip)) - (inputs - (list python-sge python-xsge)) + (copy-file "retux.py" (string-append bin "/retux")) + (copy-recursively "data" data))))))) + (native-inputs (list unzip python-setuptools)) + (inputs (list python-sge python-xsge)) (home-page "https://retux-game.github.io/") (synopsis "Action platformer game") (description