guix-commits
[Top][All Lists]
Advanced

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

branch master updated: gnu: python-ipykernel: Fix build.


From: guix-commits
Subject: branch master updated: gnu: python-ipykernel: Fix build.
Date: Wed, 26 Apr 2023 07:33:50 -0400

This is an automated email from the git hooks/post-receive script.

rekado pushed a commit to branch master
in repository guix.

The following commit(s) were added to refs/heads/master by this push:
     new 399e1b8e01 gnu: python-ipykernel: Fix build.
399e1b8e01 is described below

commit 399e1b8e01586c0e8a61bcada2bb5d9a2cbaddc9
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Wed Apr 26 13:32:02 2023 +0200

    gnu: python-ipykernel: Fix build.
    
    * gnu/packages/python-xyz.scm (python-ipykernel)[build-system]: Use
    pyproject-build-system.
    [arguments]: Use pyproject-build-system modules; add build phase
    'hide-zmq-deprecation-warnings.
---
 gnu/packages/python-xyz.scm | 15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 937c0be717..2d86cb95df 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -9661,17 +9661,26 @@ installing @code{kernelspec}s for use with Jupyter 
frontends.")
        (uri (pypi-uri "ipykernel" version))
        (sha256
         (base32 "0q5yni8h08nadsn53f957p0pjsjhwl2b2lp1hqz3jn0854z2fa0f"))))
-    (build-system python-build-system)
+    (build-system pyproject-build-system)
     (arguments
      (list
-      #:imported-modules `(,@%python-build-system-modules
+      #:imported-modules `(,@%pyproject-build-system-modules
                            (guix build syscalls))
-      #:modules '((guix build python-build-system)
+      #:modules '((guix build pyproject-build-system)
                   (guix build syscalls)
                   (guix build utils)
                   (ice-9 match))
       #:phases
       #~(modify-phases %standard-phases
+          ;; The deprecation warnings break the tests.
+           (add-after 'unpack 'hide-zmq-deprecation-warnings
+             (lambda _
+               (substitute* "pyproject.toml"
+                 (("\"ignore:There is no current event 
loop:DeprecationWarning\"" m)
+                  (string-append m ",
+\"ignore:make_current is deprecated.*:DeprecationWarning\",
+\"ignore:zmq.eventloop.ioloop.*:DeprecationWarning\",
+\"ignore:zmq.tests.BaseZMQTestCase.*:DeprecationWarning\"")))))
           (replace 'check
             (lambda* (#:key tests? #:allow-other-keys)
               (when tests?



reply via email to

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