unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Tobias Kortkamp <tobias.kortkamp@gmail.com>
To: 57429@debbugs.gnu.org
Cc: Tobias Kortkamp <tobias.kortkamp@gmail.com>
Subject: [bug#57429] [PATCH 2/3] gnu: piper: Unbreak tests.
Date: Fri, 26 Aug 2022 16:37:13 +0200	[thread overview]
Message-ID: <ccdad1e3ba9d3441bc0eabdfabffab6fb76b9bb6.1661501683.git.tobias.kortkamp@gmail.com> (raw)
In-Reply-To: <cover.1661501683.git.tobias.kortkamp@gmail.com>

Make flake8 config available inside the build directory.

https://github.com/libratbag/piper/pull/781

* gnu/packages/gnome.scm (piper): Unbreak tests.
---
 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 fe822eb035..83d64fbd49 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -12123,7 +12123,6 @@ (define-public piper
            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
@@ -12140,7 +12139,11 @@ (define-public piper
                      (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
-- 
2.37.1





  parent reply	other threads:[~2022-08-26 15:20 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-26  8:38 [bug#57429] [PATCH 0/3] gnu: piper: Fix runtime and update to 0.7 Tobias Kortkamp
2022-08-26 14:37 ` [bug#57429] [PATCH 1/3] gnu: piper: Fix runtime Tobias Kortkamp
2022-08-26 14:37 ` Tobias Kortkamp [this message]
2022-08-26 14:37 ` [bug#57429] [PATCH 3/3] gnu: piper: Update to 0.7 Tobias Kortkamp
2022-09-11 14:49   ` bug#57429: [PATCH 0/3] gnu: piper: Fix runtime and update " Mathieu Othacehe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ccdad1e3ba9d3441bc0eabdfabffab6fb76b9bb6.1661501683.git.tobias.kortkamp@gmail.com \
    --to=tobias.kortkamp@gmail.com \
    --cc=57429@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).