From b35ffb35c0095a5f7fe061226b31243e88a5cc19 Mon Sep 17 00:00:00 2001 From: Nicolas Graves Date: Sat, 22 Nov 2025 22:32:39 +0100 Subject: [PATCH] gnu: bambam: Switch to pyproject. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/games.scm (bambam): [source, arguments, description]: Improve style. [build-system]: Switch to pyproject-build-system. [native-inputs]: Add python-setuptools. Signed-off-by: Ludovic Courtès --- gnu/packages/games.scm | 57 +++++++++++++++++++++--------------------- 1 file changed, 29 insertions(+), 28 deletions(-) diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index cdeea940dd59ac7090df708898beb0247820bc3a..2bb4c6a25d361af3d5b2e80cb34d8ccb0247e2a4 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm @@ -6992,37 +6992,38 @@ programmers may also add their own favorite language.") (name "bambam") (version "1.2.1") (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/porridge/bambam") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 "148cqahklqd4m88j5z1xf3fh4vha41f31wian11hkas106mbsya9")))) - (build-system python-build-system) + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/porridge/bambam") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "148cqahklqd4m88j5z1xf3fh4vha41f31wian11hkas106mbsya9")))) + (build-system pyproject-build-system) (arguments - `(#:tests? #f ; no tests - #:phases - (modify-phases %standard-phases - (delete 'build) ; nothing to build - (replace 'install - (lambda* (#:key outputs #:allow-other-keys) - (let* ((out (assoc-ref outputs "out")) - (bin (string-append out "/bin")) - (share (string-append out "/share"))) - (mkdir-p bin) - (copy-file "bambam.py" (string-append bin "/bambam")) - (install-file "bambam.6" (string-append share "/man/man6")) - (copy-recursively "data" (string-append share "/bambam/data"))) - #t))))) - (inputs - (list python-pygame)) + (list + #:tests? #f ;no tests + #:phases + #~(modify-phases %standard-phases + (delete 'build) ;nothing to build + (replace 'install + (lambda _ + (let* ((bin (string-append #$output "/bin")) + (share (string-append #$output "/share"))) + (mkdir-p bin) + (copy-file "bambam.py" (string-append bin "/bambam")) + (install-file "bambam.6" (string-append share "/man/man6")) + (copy-recursively "data" + (string-append share "/bambam/data")))))))) + (native-inputs (list python-setuptools)) + (inputs (list python-pygame)) (home-page "https://github.com/porridge/bambam") (synopsis "Keyboard mashing and doodling game for babies") - (description "Bambam is a simple baby keyboard (and gamepad) masher -application that locks the keyboard and mouse and instead displays bright -colors, pictures, and sounds.") + (description + "Bambam is a simple baby keyboard (and gamepad) masher application that +locks the keyboard and mouse and instead displays bright colors, pictures, and +sounds.") (license license:gpl3+))) (define-public moonlight-qt