Merge pull request #308381 from pbsds/fix-pygame-gui-1714506295

python311Packages.pygame-gui: 069 -> 0610, unbreak, switch to pygame-ce, and harden

authored by Peder Bergebakken Sundt and committed by GitHub d32ecd77 3407bfdb

+15 -7
+15 -7
pkgs/development/python-modules/pygame-gui/default.nix
··· 2 , pkgs 3 , buildPythonPackage 4 , fetchFromGitHub 5 - , pygame 6 , python-i18n 7 , pytestCheckHook 8 }: 9 10 buildPythonPackage rec { 11 pname = "pygame-gui"; 12 - version = "069"; 13 - format = "setuptools"; 14 # nixpkgs-update: no auto update 15 16 src = fetchFromGitHub { 17 owner = "MyreMylar"; 18 repo = "pygame_gui"; 19 rev = "refs/tags/v_${version}"; 20 - hash = "sha256-IXU00Us1odbfS7jLPMYuCPv2l/5TUZdYKES7xHs+EWg="; 21 }; 22 23 - propagatedBuildInputs = [ pygame python-i18n ]; 24 25 postPatch = '' 26 substituteInPlace pygame_gui/core/utility.py \ 27 - --replace "xsel" "${pkgs.xsel}/bin/xsel" 28 ''; 29 30 nativeCheckInputs = [ pytestCheckHook ]; ··· 55 description = "A GUI system for pygame"; 56 homepage = "https://github.com/MyreMylar/pygame_gui"; 57 license = with licenses; [ mit ]; 58 - maintainers = with maintainers; [ emilytrau ]; 59 }; 60 }
··· 2 , pkgs 3 , buildPythonPackage 4 , fetchFromGitHub 5 + , setuptools 6 + , pygame-ce 7 , python-i18n 8 , pytestCheckHook 9 }: 10 11 buildPythonPackage rec { 12 pname = "pygame-gui"; 13 + version = "0610"; 14 + pyproject = true; 15 # nixpkgs-update: no auto update 16 17 src = fetchFromGitHub { 18 owner = "MyreMylar"; 19 repo = "pygame_gui"; 20 rev = "refs/tags/v_${version}"; 21 + hash = "sha256-PVNi/I174AyEEjc+N2UGtgOYSGAgVQbqrKkWZnjOxFY="; 22 }; 23 24 + nativeBuildInputs = [ 25 + setuptools 26 + ]; 27 + 28 + propagatedBuildInputs = [ 29 + pygame-ce 30 + python-i18n 31 + ]; 32 33 postPatch = '' 34 substituteInPlace pygame_gui/core/utility.py \ 35 + --replace-fail "xsel" "${lib.getExe pkgs.xsel}" 36 ''; 37 38 nativeCheckInputs = [ pytestCheckHook ]; ··· 63 description = "A GUI system for pygame"; 64 homepage = "https://github.com/MyreMylar/pygame_gui"; 65 license = with licenses; [ mit ]; 66 + maintainers = with maintainers; [ emilytrau pbsds ]; 67 }; 68 }