python311Packages.pygame 2.2.0 -> 2.5.2 https://repology.org/project/python:pygame/versions attrpath: python311Packages.pygame Checking auto update branch... [version] [version] skipping because derivation has updateScript [rustCrateVersion] [rustCrateVersion] No cargoSha256 or cargoHash found [golangModuleVersion] [golangModuleVersion] Not a buildGoModule package with vendorSha256 or vendorHash [npmDepsVersion] [npmDepsVersion] No npmDepsHash [updateScript] [updateScript] Success [updateScript] this derivation will be built: /nix/store/2qmkxhss4rxynvs0rh84yg92q0k33igz-packages.json.drv building '/nix/store/2qmkxhss4rxynvs0rh84yg92q0k33igz-packages.json.drv'... Going to be running update for following packages: - python3.11-pygame-2.2.0 Press Enter key to continue... Running update for: - python3.11-pygame-2.2.0: UPDATING ... - python3.11-pygame-2.2.0: DONE. Packages updated! [quotedUrls] [quotedUrls] nothing found to replace Diff after rewrites: diff --git a/pkgs/development/python-modules/pygame/default.nix b/pkgs/development/python-modules/pygame/default.nix index 140b233e3428..1dccdc59a274 100644 --- a/pkgs/development/python-modules/pygame/default.nix +++ b/pkgs/development/python-modules/pygame/default.nix @@ -6,7 +6,7 @@ buildPythonPackage rec { pname = "pygame"; - version = "2.2.0"; + version = "2.5.2"; disabled = pythonOlder "3.6"; @@ -15,11 +15,11 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = pname; repo = pname; - rev = version; + rev = "refs/tags/${version}"; # 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-SMkY3uN3kAlb/pbm047W0G8MJ7G8mCsfGVSPhzd5aEo="; + hash = "sha256-shJtjqZbxfI/FcyXoPYaYmI0AYKeTlCC6w/dJV8Qdes="; postFetch = "rm -rf $out/docs/reST"; }; No auto update branch exists Old version 2.2.0" not present in staging derivation file with contents: { stdenv, lib, substituteAll, fetchFromGitHub, buildPythonPackage, python, pkg-config, libX11 , SDL2, SDL2_image, SDL2_mixer, SDL2_ttf, libpng, libjpeg, portmidi, freetype, fontconfig , AppKit , pythonOlder }: buildPythonPackage rec { pname = "pygame"; version = "2.5.1"; disabled = pythonOlder "3.6"; format = "setuptools"; src = fetchFromGitHub { owner = pname; repo = pname; rev = "refs/tags/${version}"; # 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="; postFetch = "rm -rf $out/docs/reST"; }; patches = [ # Patch pygame's dependency resolution to let it find build inputs (substituteAll { src = ./fix-dependency-finding.patch; buildinputs_include = builtins.toJSON (builtins.concatMap (dep: [ "${lib.getDev dep}/" "${lib.getDev dep}/include" "${lib.getDev dep}/include/SDL2" ]) buildInputs); buildinputs_lib = builtins.toJSON (builtins.concatMap (dep: [ "${lib.getLib dep}/" "${lib.getLib dep}/lib" ]) buildInputs); }) ]; postPatch = '' substituteInPlace src_py/sysfont.py \ --replace 'path="fc-list"' 'path="${fontconfig}/bin/fc-list"' \ --replace /usr/X11/bin/fc-list ${fontconfig}/bin/fc-list ''; nativeBuildInputs = [ pkg-config SDL2 ]; buildInputs = [ SDL2 SDL2_image SDL2_mixer SDL2_ttf libpng libjpeg portmidi libX11 freetype ] ++ lib.optionals stdenv.isDarwin [ AppKit ]; preConfigure = '' ${python.pythonForBuild.interpreter} buildconfig/config.py ''; checkPhase = '' runHook preCheck # No audio or video device in test environment export SDL_VIDEODRIVER=dummy export SDL_AUDIODRIVER=disk export SDL_DISKAUDIOFILE=/dev/null ${python.interpreter} -m pygame.tests -v --exclude opengl,timing --time_out 300 runHook postCheck ''; pythonImportsCheck = [ "pygame" ]; meta = with lib; { description = "Python library for games"; homepage = "https://www.pygame.org/"; license = licenses.lgpl21Plus; maintainers = with maintainers; [ emilytrau ]; platforms = platforms.unix; }; }