Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python312Packages.pygame-ce: 2.5.1 -> 2.5.2 #352150

Merged
merged 3 commits into from
Oct 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 16 additions & 10 deletions pkgs/development/python-modules/pygame-ce/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,13 @@
SDL2_mixer,
SDL2_ttf,
numpy,

pygame-gui,
}:

buildPythonPackage rec {
pname = "pygame-ce";
version = "2.5.1";
version = "2.5.2";
pyproject = true;

disabled = pythonOlder "3.8";
Expand All @@ -37,7 +39,7 @@ buildPythonPackage rec {
owner = "pygame-community";
repo = "pygame-ce";
rev = "refs/tags/${version}";
hash = "sha256-bt/6ukXZU79CWFqov9JON9ktQ/c4NKLxhX4Jif3Enxs=";
hash = "sha256-9e02ZfBfk18jsVDKKhMwEJiTGMG7VdBEgVh4unMJguY=";
# Unicode file cause different checksums on HFS+ vs. other filesystems
postFetch = "rm -rf $out/docs/reST";
};
Expand Down Expand Up @@ -67,10 +69,10 @@ buildPythonPackage rec {
''
# cython was pinned to fix windows build hangs (pygame-community/pygame-ce/pull/3015)
substituteInPlace pyproject.toml \
--replace-fail '"cython<=3.0.10",' '"cython",' \
--replace-fail '"meson<=1.5.0",' '"meson",' \
--replace-fail '"sphinx<=7.2.6",' "" \
--replace-fail '"ninja<=1.11.1.1",' ""
--replace-fail '"meson<=1.5.1",' '"meson",' \
--replace-fail '"ninja<=1.11.1.1",' "" \
--replace-fail '"cython<=3.0.11",' '"cython",' \
--replace-fail '"sphinx<=7.2.6",' ""
substituteInPlace buildconfig/config_{unix,darwin}.py \
--replace-fail 'from distutils' 'from setuptools._distutils'
substituteInPlace src_py/sysfont.py \
Expand Down Expand Up @@ -151,12 +153,16 @@ buildPythonPackage rec {
"pygame.version"
];

meta = with lib; {
passthru.tests = {
inherit pygame-gui;
};

meta = {
description = "Pygame Community Edition (CE) - library for multimedia application built on SDL";
homepage = "https://pyga.me/";
changelog = "https://github.com/pygame-community/pygame-ce/releases/tag/${version}";
license = licenses.lgpl21Plus;
maintainers = with maintainers; [ pbsds ];
platforms = platforms.unix;
license = lib.licenses.lgpl21Plus;
maintainers = [ lib.maintainers.pbsds ];
platforms = lib.platforms.unix;
};
}
6 changes: 6 additions & 0 deletions pkgs/development/python-modules/pygame-gui/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
lib,
pkgs,
stdenv,
buildPythonPackage,
nix-update-script,
fetchFromGitHub,
Expand Down Expand Up @@ -53,6 +54,11 @@ buildPythonPackage rec {
"test_process_event_text_ctrl_v_select_range"
"test_process_event_text_ctrl_a"
"test_process_event_text_ctrl_x"
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
# fails to determine "/" as an existing path
# https://github.com/MyreMylar/pygame_gui/issues/644
"test_process_event"
];

disabledTestPaths = [ "tests/test_performance/test_text_performance.py" ];
Expand Down