uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
59
pkgs/development/python-modules/pygame-gui/default.nix
Normal file
59
pkgs/development/python-modules/pygame-gui/default.nix
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
{ lib
|
||||
, pkgs
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pygame
|
||||
, python-i18n
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pygame-gui";
|
||||
version = "0.6.4";
|
||||
# nixpkgs-update: no auto update
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "MyreMylar";
|
||||
repo = "pygame_gui";
|
||||
rev = "v_${lib.replaceStrings ["."] [""] version}";
|
||||
sha256 = "13+fK1hYxiMh0T+xbbmHViZjyBoQfRyIDc05fIJ/46U=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ pygame python-i18n ];
|
||||
|
||||
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"
|
||||
];
|
||||
|
||||
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 ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue