From 38bfd1d3aef3498c6d49d811cf92616c7f022da1 Mon Sep 17 00:00:00 2001 From: Liliana Marie Prikler Date: Sat, 29 Nov 2025 17:09:40 +0100 Subject: [PATCH] gnu: Remove python-pygame-sdl2. This package was only used by python-renpy, which vendors it as of version 8.5. * gnu/packages/game-development.scm (python-pygame-sdl2): Delete variable. --- gnu/packages/game-development.scm | 50 ------------------------------- 1 file changed, 50 deletions(-) diff --git a/gnu/packages/game-development.scm b/gnu/packages/game-development.scm index 9100a59f9140d9a7f6779ade1fabeee84394dde4..ada748aebb135820c4355ea43e308afc890045d1 100644 --- a/gnu/packages/game-development.scm +++ b/gnu/packages/game-development.scm @@ -1621,56 +1621,6 @@ drop selectors, frames, images, labels, selectors, tables, text inputs, color switches, and many more, with multiple options to customize.") (license license:expat))) -(define-public python-pygame-sdl2 - (let ((real-version "2.1.0") - (renpy-version "8.3.0")) - (package - (inherit python-pygame) - (name "python-pygame-sdl2") - (version (string-append real-version "+renpy" renpy-version)) - (source - (origin - (method url-fetch) - (uri (string-append "https://www.renpy.org/dl/" renpy-version - "/pygame_sdl2-" version ".tar.gz")) - (sha256 (base32 "1p8a4v3r5vjxhiwxdmqqhkl38zav6c4a6w6v2nixzdhzyfkgk16n")) - (modules '((guix build utils))) - (snippet - '(begin - ;; drop generated sources - (delete-file-recursively "gen") - (delete-file-recursively "gen3") - (delete-file-recursively "gen-static"))))) - (build-system python-build-system) - (arguments - (list - #:tests? #f ; tests require pygame to be installed first - #:phases - #~(modify-phases %standard-phases - (add-after 'set-paths 'set-sdl-vars - (lambda* (#:key inputs #:allow-other-keys) - (setenv "PYGAME_SDL2_CFLAGS" - (string-append "-I" - (assoc-ref inputs "sdl-union") - "/include/SDL2 -D_REENTRANT")) - (setenv "PYGAME_SDL2_LDFLAGS" - (string-append "-L" - (assoc-ref inputs "sdl-union") - "/lib -Wl,-rpath," - (assoc-ref inputs "sdl-union") - "/lib -Wl,--enable-new-dtags -lSDL2"))))))) - (inputs - (list (sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))) - (native-inputs - (list python-cython-0)) - (home-page "https://www.renpy.org/") - (synopsis "Reimplementation of the Pygame API using SDL2") - (description "Pygame_SDL2 reimplements the Pygame API using SDL2, -staying close to the original, but also adding some SDL2-specific features. -While it aims to be used as a drop-in replacement, it appears to be -developed mainly for Ren'py.") - (license (list license:lgpl2.1 license:zlib))))) - (define-public python-pygame-ce (package (name "python-pygame-ce")