python3Packages.pygame: 2.5.1 -> 2.5.2

This commit is contained in:
Martin Weinelt 2023-12-03 00:02:08 +01:00
parent b2af56386e
commit 88bedd61f2
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759

View File

@ -1,17 +1,39 @@
{ stdenv, lib, substituteAll, fetchFromGitHub, buildPythonPackage, python, pkg-config, libX11
, SDL2, SDL2_image, SDL2_mixer, SDL2_ttf, libpng, libjpeg, portmidi, freetype, fontconfig
, AppKit
{ stdenv
, lib
, substituteAll
, fetchFromGitHub
, buildPythonPackage
, pythonOlder
# build-system
, cython_3
, setuptools
, pkg-config
# native dependencies
, AppKit
, fontconfig
, freetype
, libjpeg
, libpng
, libX11
, portmidi
, SDL2
, SDL2_image
, SDL2_mixer
, SDL2_ttf
# tests
, python
}:
buildPythonPackage rec {
pname = "pygame";
version = "2.5.1";
version = "2.5.2";
pyproject = true;
disabled = pythonOlder "3.6";
format = "setuptools";
src = fetchFromGitHub {
owner = pname;
repo = pname;
@ -19,7 +41,7 @@ buildPythonPackage rec {
# Unicode file names lead to different checksums on HFS+ vs. other
# filesystems because of unicode normalisation. The documentation
# has such files and will be removed.
hash = "sha256-0mVbjfNYTfuo8uyd7NFKlneUZMt78mcitQ5nCgPxmFs=";
hash = "sha256-+gRv3Rim+2aL2uhPPGfVD0QDgB013lTf6wPx8rOwgXg=";
postFetch = "rm -rf $out/docs/reST";
};
@ -46,12 +68,22 @@ buildPythonPackage rec {
'';
nativeBuildInputs = [
pkg-config SDL2
cython_3
pkg-config
SDL2
setuptools
];
buildInputs = [
SDL2 SDL2_image SDL2_mixer SDL2_ttf libpng libjpeg
portmidi libX11 freetype
freetype
libjpeg
libpng
libX11
portmidi
SDL2
SDL2_image
SDL2_mixer
SDL2_ttf
] ++ lib.optionals stdenv.isDarwin [
AppKit
];