summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVinicius Monego <monego@posteo.net>2025-06-28 10:18:26 -0300
committerVinicius Monego <monego@posteo.net>2025-07-26 18:32:11 -0300
commit2774ef1b4a64b724d13bede0baaf1566287d63b2 (patch)
treea27f095f5e29b53725113fcecb257ee3d6cd2f4e
parentcac335b38ff182067cfffd227c9bb1bcb1a17613 (diff)
gnu: Add python-pygame-ce.
* gnu/packages/game-development.scm (python-pygame-ce): New variable. Change-Id: I527c06f0c081702306247db5969a7f0b26890c81
-rw-r--r--gnu/packages/game-development.scm67
1 files changed, 67 insertions, 0 deletions
diff --git a/gnu/packages/game-development.scm b/gnu/packages/game-development.scm
index 61520575a8..d1642fa59a 100644
--- a/gnu/packages/game-development.scm
+++ b/gnu/packages/game-development.scm
@@ -36,6 +36,7 @@
;;; Copyright © 2025 Sharlatan Hellseher <sharlatanus@gmail.com>
;;; Copyright © 2025 宋文武 <iyzsong@envs.net>
;;; Copyright © 2025 Arnaud Lechevallier <arnaud.lechevallier@free.fr>
+;;; Copyright © 2025 Vinicius Monego <monego@posteo.net>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -1628,6 +1629,72 @@ 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")
+ (version "2.5.5")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "pygame_ce" version))
+ (sha256
+ (base32 "0sxfchimdg606z65qychgvm66mq0aybs2isxsqb5zqy64g19gwm7"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:test-flags
+ #~(list "-k" (string-join
+ ;; Ignore interactive tests first.
+ (list "not DisplayUpdateInteractiveTest"
+ "DisplayInteractiveTest"
+ "FullScreenToggleTestsInteractive"
+ "MessageBoxInteractiveTest"
+ "VisualTestsInteractive"
+ "TouchInteractiveTest"
+ ;; Pytest error reading from stdin
+ "test__get_count_interactive"
+ "test_get_count_interactive"
+ "test_set_source_location"
+ ;; Will not convert image with alpha channel to RGB
+ "testSavePNG24"
+ "testSavePNG8"
+ "testSavePaletteAsPNG8"
+ ;; Content could not be saved in clipboard
+ "test_get__owned_empty_type"
+ "test_init__reinit"
+ "test_put"
+ "test_put__bmp_image"
+ "test_put__text"
+ "test_issue_223"
+ ;; AssertionError
+ "test_palette_colorkey"
+ "test_palette_colorkey_fill"
+ "test_palette_colorkey_set_px"
+ "test_create_aliases"
+ ;; Possibly flaky tests
+ "test_multiple_timers"
+ "test_timer_common_reference")
+ " and not "))
+ #:phases #~(modify-phases %standard-phases
+ (add-before 'check 'pre-check
+ (lambda _
+ (setenv "HOME" "/tmp")
+ (setenv "SDL_VIDEODRIVER" "dummy")
+ (setenv "SDL_AUDIODRIVER" "disk"))))))
+ (native-inputs (list meson-python
+ pkg-config
+ python-cython-3
+ python-numpy
+ python-pytest
+ python-setuptools))
+ (inputs (list freetype portmidi sdl2 sdl2-image sdl2-mixer sdl2-ttf))
+ (home-page "https://pyga.me/")
+ (synopsis "Python Game Development")
+ (description "Pygame-CE is a fork of the upstream pygame project by its
+former core developers. It aims to offer more frequent releases, continuous
+bugfixes and enhancements, and a new governance model.")
+ (license license:lgpl2.1+)))
+
(define-public python-renpy
(package
(name "python-renpy")