diff options
author | Angus Trau <me@angus.ws> | 2021-07-16 09:49:18 +1000 |
---|---|---|
committer | Angus Trau <me@angus.ws> | 2021-07-22 11:46:43 +1000 |
commit | e0640636a801a8c63204742c22925da0e94b9819 (patch) | |
tree | bd9db8f488165016523086f52438df3df1130919 /pkgs | |
parent | 7c9470a0612d0e8f4988206794d1e66f1c6bf680 (diff) | |
download | nixlib-e0640636a801a8c63204742c22925da0e94b9819.tar nixlib-e0640636a801a8c63204742c22925da0e94b9819.tar.gz nixlib-e0640636a801a8c63204742c22925da0e94b9819.tar.bz2 nixlib-e0640636a801a8c63204742c22925da0e94b9819.tar.lz nixlib-e0640636a801a8c63204742c22925da0e94b9819.tar.xz nixlib-e0640636a801a8c63204742c22925da0e94b9819.tar.zst nixlib-e0640636a801a8c63204742c22925da0e94b9819.zip |
python3Packages.pygame-gui: init at 0.5.7
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/python-modules/pygame-gui/default.nix | 53 | ||||
-rw-r--r-- | pkgs/top-level/python-packages.nix | 2 |
2 files changed, 55 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pygame-gui/default.nix b/pkgs/development/python-modules/pygame-gui/default.nix new file mode 100644 index 000000000000..58f65b6d0f41 --- /dev/null +++ b/pkgs/development/python-modules/pygame-gui/default.nix @@ -0,0 +1,53 @@ +{ lib +, pkgs +, buildPythonPackage +, fetchFromGitHub +, pygame +, pytestCheckHook +}: + +buildPythonPackage rec { + pname = "pygame-gui"; + version = "0.5.7"; + + src = fetchFromGitHub { + owner = "MyreMylar"; + repo = "pygame_gui"; + rev = "v_${lib.replaceStrings ["."] [""] version}"; + sha256 = "4P2PT8/7oA5Q7H4+pm7BOET7w05pQYQltXVV3+YVrVE="; + }; + + propagatedBuildInputs = [ pygame ]; + + postPatch = '' + substituteInPlace pygame_gui/core/utility.py \ + --replace "xsel" "${pkgs.xsel}/bin/xsel" + ''; + + checkInputs = [ pytestCheckHook ]; + + preCheck = '' + export HOME=$TMPDIR + export SDL_VIDEODRIVER=dummy + ''; + + disabledTests = [ + # Clipboard doesn't exist in test environment + "test_process_event_text_ctrl_c" + "test_process_event_text_ctrl_v" + "test_process_event_text_ctrl_v_nothing" + "test_process_event_ctrl_v_over_limit" + "test_process_event_ctrl_v_at_limit" + "test_process_event_ctrl_v_over_limit_select_range" + "test_process_event_text_ctrl_v_select_range" + "test_process_event_text_ctrl_a" + "test_process_event_text_ctrl_x" + ]; + + meta = with lib; { + description = "A GUI system for pygame"; + homepage = "https://github.com/MyreMylar/pygame_gui"; + license = with licenses; [ mit ]; + maintainers = with maintainers; [ angustrau ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index abf8dc2ee804..7ef540cfd7ff 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5992,6 +5992,8 @@ in { pygame_sdl2 = callPackage ../development/python-modules/pygame_sdl2 { }; + pygame-gui = callPackage ../development/python-modules/pygame-gui { }; + pygatt = callPackage ../development/python-modules/pygatt { }; pygbm = callPackage ../development/python-modules/pygbm { }; |