Merge pull request #334133 from pbsds/bump-pygame-ce-1723467337

python312Packages.pygame-ce: 2.5.0 -> 2.5.1
This commit is contained in:
Peder Bergebakken Sundt 2024-08-23 01:09:20 +02:00 committed by GitHub
commit 1f3f91b204
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -28,7 +28,7 @@
buildPythonPackage rec {
pname = "pygame-ce";
version = "2.5.0";
version = "2.5.1";
pyproject = true;
disabled = pythonOlder "3.8";
@ -37,7 +37,7 @@ buildPythonPackage rec {
owner = "pygame-community";
repo = "pygame-ce";
rev = "refs/tags/${version}";
hash = "sha256-LVwOAp7ss8TPxJhfqGwOfH9EXNoNBGFpU+4tv4ozpvo=";
hash = "sha256-bt/6ukXZU79CWFqov9JON9ktQ/c4NKLxhX4Jif3Enxs=";
# Unicode file cause different checksums on HFS+ vs. other filesystems
postFetch = "rm -rf $out/docs/reST";
};
@ -66,7 +66,9 @@ buildPythonPackage rec {
postPatch =
''
substituteInPlace pyproject.toml \
--replace-fail ', "sphinx<=7.2.6"' ""
--replace-fail '"meson<=1.5.0",' '"meson",' \
--replace-fail '"sphinx<=7.2.6",' "" \
--replace-fail '"ninja<=1.11.1.1",' ""
substituteInPlace buildconfig/config_{unix,darwin}.py \
--replace-fail 'from distutils' 'from setuptools._distutils'
substituteInPlace src_py/sysfont.py \
@ -76,6 +78,8 @@ buildPythonPackage rec {
+ lib.optionalString stdenv.isDarwin ''
# flaky
rm test/system_test.py
substituteInPlace test/meson.build \
--replace-fail "'system_test.py'," ""
'';
nativeBuildInputs = [
@ -104,7 +108,7 @@ buildPythonPackage rec {
preConfigure = ''
${python.pythonOnBuildForHost.interpreter} buildconfig/config.py
${python.pythonOnBuildForHost.interpreter} -m buildconfig.config
'';
env =
@ -148,6 +152,7 @@ buildPythonPackage rec {
meta = with lib; {
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;