diff options
-rw-r--r-- | gnu/packages/terminals.scm | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/gnu/packages/terminals.scm b/gnu/packages/terminals.scm index 3931811024..682af3dcf8 100644 --- a/gnu/packages/terminals.scm +++ b/gnu/packages/terminals.scm @@ -43,6 +43,7 @@ ;;; Copyright © 2024 Ashish SHUKLA <ashish.is@lostca.se> ;;; Copyright © 2024 Ashvith Shetty <ashvithshetty10@gmail.com> ;;; Copyright © 2024, 2025 Artyom V. Poptsov <poptsov.artyom@gmail.com> +;;; Copyright © 2025 Roman Scherer <roman@burningswell.com> ;;; ;;; This file is part of GNU Guix. ;;; @@ -1338,6 +1339,8 @@ tmux.") (delete 'configure) ;no configure script (replace 'build (lambda* (#:key inputs #:allow-other-keys) + ;; Don't fail on deprecation warnings from GCC + (setenv "CFLAGS" "-Wno-error=deprecated-declarations") ;; The "kitty" sub-directory must be writable prior to ;; configuration (e.g., un-setting updates). (for-each make-file-writable (find-files "kitty")) @@ -1355,6 +1358,31 @@ tmux.") ;; tests. (setenv "PATH" (string-append "linux-package/bin:" (getenv "PATH"))) + ;; Don't fail on deprecation warnings from Python + (substitute* "test.py" + (("'error'") "'ignore'")) + ;; Fails: No writable cache directories + (substitute* "kitty_tests/fonts.py" + ((" def test_box_drawing") + (string-append + " @unittest.skip('No writable cache directories')\n" + " def test_box_drawing"))) + ;; Fails: Permission denied + (substitute* "kitty_tests/parser.py" + (("import time") + "import time\nimport unittest\n") + ((" def test_graphics_command") + (string-append + " @unittest.skip('Permission denied')\n" + " def test_graphics_command"))) + ;; TypeError: expected bytes, str found + (substitute* "kitty_tests/tui.py" + (("from . import BaseTest") + "from . import BaseTest\nimport unittest\n") + ((" def test_multiprocessing_spawn") + (string-append + " @unittest.skip('TypeError: expected bytes, str found')\n" + " def test_multiprocessing_spawn"))) (invoke "python3" "test.py")))) (add-before 'install 'rm-pycache ;; created python cache __pycache__ are non deterministic |