guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

02/03: gnu: piper: Unbreak tests.


From: guix-commits
Subject: 02/03: gnu: piper: Unbreak tests.
Date: Sun, 11 Sep 2022 10:53:15 -0400 (EDT)

mothacehe pushed a commit to branch master
in repository guix.

commit 0b876d0a714c14319533ae5b857fa515558f8ec0
Author: Tobias Kortkamp <tobias.kortkamp@gmail.com>
AuthorDate: Fri Aug 26 16:37:13 2022 +0200

    gnu: piper: Unbreak tests.
    
    Make flake8 config available inside the build directory.
    
    https://github.com/libratbag/piper/pull/781
    
    * gnu/packages/gnome.scm (piper): Unbreak tests.
    
    Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
---
 gnu/packages/gnome.scm | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index fe4a667797..47c9396781 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -12194,7 +12194,6 @@ your operating-system definition:
            python-pygobject))
     (arguments
      (list #:glib-or-gtk? #t
-           #:tests? #f ;; The flake8 test fails trying to validate piper.in as 
code.
            #:phases
            #~(modify-phases %standard-phases
                (add-after 'unpack 'dont-update-gtk-icon-cache
@@ -12211,7 +12210,11 @@ your operating-system definition:
                      (wrap-program
                          (string-append #$output "/bin/piper")
                        `("GUIX_PYTHONPATH" = (,(getenv "GUIX_PYTHONPATH") 
,pylib))
-                       `("GI_TYPELIB_PATH" = (,(getenv 
"GI_TYPELIB_PATH"))))))))))
+                       `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH")))))))
+               (add-before 'check 'flake8-config
+                 (lambda _
+                   ;; Make sure the tests use the local flake8 config
+                   (symlink (string-append #$source "/.flake8") ".flake8"))))))
     (home-page "https://github.com/libratbag/piper/";)
     (synopsis "Configure bindings and LEDs on gaming mice")
     (description "Piper is a GTK+ application for configuring gaming mice with



reply via email to

[Prev in Thread] Current Thread [Next in Thread]