diff options
Diffstat (limited to 'pkgs/development/python-modules/pygame-gui/default.nix')
-rw-r--r-- | pkgs/development/python-modules/pygame-gui/default.nix | 40 |
1 files changed, 24 insertions, 16 deletions
diff --git a/pkgs/development/python-modules/pygame-gui/default.nix b/pkgs/development/python-modules/pygame-gui/default.nix index e2314f9c6e920..f55ed21d2e3ee 100644 --- a/pkgs/development/python-modules/pygame-gui/default.nix +++ b/pkgs/development/python-modules/pygame-gui/default.nix @@ -1,30 +1,37 @@ -{ lib -, pkgs -, buildPythonPackage -, fetchFromGitHub -, pygame -, python-i18n -, pytestCheckHook +{ + lib, + pkgs, + buildPythonPackage, + fetchFromGitHub, + setuptools, + pygame-ce, + python-i18n, + pytestCheckHook, }: buildPythonPackage rec { pname = "pygame-gui"; - version = "069"; - format = "setuptools"; + version = "0610"; + pyproject = true; # nixpkgs-update: no auto update src = fetchFromGitHub { owner = "MyreMylar"; repo = "pygame_gui"; rev = "refs/tags/v_${version}"; - hash = "sha256-IXU00Us1odbfS7jLPMYuCPv2l/5TUZdYKES7xHs+EWg="; + hash = "sha256-PVNi/I174AyEEjc+N2UGtgOYSGAgVQbqrKkWZnjOxFY="; }; - propagatedBuildInputs = [ pygame python-i18n ]; + nativeBuildInputs = [ setuptools ]; + + propagatedBuildInputs = [ + pygame-ce + python-i18n + ]; postPatch = '' substituteInPlace pygame_gui/core/utility.py \ - --replace "xsel" "${pkgs.xsel}/bin/xsel" + --replace-fail "xsel" "${lib.getExe pkgs.xsel}" ''; nativeCheckInputs = [ pytestCheckHook ]; @@ -47,14 +54,15 @@ buildPythonPackage rec { "test_process_event_text_ctrl_x" ]; - disabledTestPaths = [ - "tests/test_performance/test_text_performance.py" - ]; + disabledTestPaths = [ "tests/test_performance/test_text_performance.py" ]; meta = with lib; { description = "A GUI system for pygame"; homepage = "https://github.com/MyreMylar/pygame_gui"; license = with licenses; [ mit ]; - maintainers = with maintainers; [ emilytrau ]; + maintainers = with maintainers; [ + emilytrau + pbsds + ]; }; } |