diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2021-07-22 12:53:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-22 12:53:52 +0200 |
commit | d1aa855491b03eeb91a474deb43df89a7c03f484 (patch) | |
tree | afb4904a957d6382cea59e1ba6f88c80409333a6 /pkgs/development | |
parent | d1c23a322af030ec9992d2251fb3ec45b2882e7e (diff) | |
parent | e0640636a801a8c63204742c22925da0e94b9819 (diff) | |
download | nixlib-d1aa855491b03eeb91a474deb43df89a7c03f484.tar nixlib-d1aa855491b03eeb91a474deb43df89a7c03f484.tar.gz nixlib-d1aa855491b03eeb91a474deb43df89a7c03f484.tar.bz2 nixlib-d1aa855491b03eeb91a474deb43df89a7c03f484.tar.lz nixlib-d1aa855491b03eeb91a474deb43df89a7c03f484.tar.xz nixlib-d1aa855491b03eeb91a474deb43df89a7c03f484.tar.zst nixlib-d1aa855491b03eeb91a474deb43df89a7c03f484.zip |
Merge pull request #130328 from angustrau/pygame-gui
python3Packages.pygame-gui: init at 0.5.7
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/python-modules/pygame-gui/default.nix | 53 |
1 files changed, 53 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 ]; + }; +} |