all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Liliana Marie Prikler <liliana.prikler@gmail.com>
To: 52595@debbugs.gnu.org
Subject: [bug#52595] [PATCH 1/5] gnu: python-future: Fix sanity check.
Date: Fri, 17 Dec 2021 18:56:56 +0100	[thread overview]
Message-ID: <6f948e621fa47df5e1e138923b334096e29d4fdf.camel@gmail.com> (raw)
In-Reply-To: <9af1bb4930763c511306573bbf032d6ed700ff25.camel@gmail.com>

* gnu/packages/python-xyz.scm (python-future): Exclude winreg and tkinter from
sanity check.
---
 gnu/packages/python-xyz.scm | 19 ++++++++++++++++++-
 1 file changed, 18 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 13d883c26d..3970153894 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -14780,7 +14780,24 @@ (define-public python-future
     ;; Many tests connect to the network or are otherwise flawed.
     ;; https://github.com/PythonCharmers/python-future/issues/210
     (arguments
-     `(#:tests? #f))
+     `(#:tests? #f
+       #:phases
+       (modify-phases %standard-phases
+         (replace 'sanity-check
+           (let ((sanity-check (assoc-ref %standard-phases 'sanity-check)))
+             (lambda* (#:key inputs outputs #:allow-other-keys #:rest args)
+               (let* ((files (find-files (site-packages inputs outputs)
+                                         "top_level\\.txt"))
+                      (backups (map (lambda (f) (string-append f ".bak"))
+                                    files)))
+                 (for-each copy-file files backups)
+                 (substitute* files
+                   ;; Nobody be usin' winreg on Guix
+                   ;; Also, don't force users to have tkinter when they don't
+                   ;; need it
+                   (("(winreg|tkinter)") ""))
+                 (apply sanity-check args)
+                 (for-each rename-file backups files))))))))
     (home-page "https://python-future.org")
     (synopsis "Single-source support for Python 3 and 2")
     (description
-- 
2.34.0





  reply	other threads:[~2021-12-18 10:10 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-17 19:52 [bug#52595] [PATCH 0/5] Update Ren'py to 7.4.11 Liliana Marie Prikler
2021-12-17 17:56 ` Liliana Marie Prikler [this message]
2021-12-17 18:22 ` [bug#52595] [PATCH 2/5] gnu: python2-renpy: Do not delete non-existing file Liliana Marie Prikler
2021-12-17 18:59 ` [bug#52595] [PATCH 3/5] gnu: renpy: Move renpy command to aux-files Liliana Marie Prikler
2021-12-17 19:31 ` [bug#52595] [PATCH 4/5] gnu: python2-pygame-sdl2: Update to renpy version 7.4.11 Liliana Marie Prikler
2021-12-17 19:32 ` [bug#52595] [PATCH 5/5] gnu: python2-renpy: Update to 7.4.11 Liliana Marie Prikler
2022-01-15  9:02   ` bug#52595: " Liliana Marie Prikler

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

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

  git send-email \
    --in-reply-to=6f948e621fa47df5e1e138923b334096e29d4fdf.camel@gmail.com \
    --to=liliana.prikler@gmail.com \
    --cc=52595@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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.