guix-commits
[Top][All Lists]
Advanced

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

branch core-updates-frozen updated: gnu: python2-numpy: Do not inherit n


From: guix-commits
Subject: branch core-updates-frozen updated: gnu: python2-numpy: Do not inherit native-inputs.
Date: Wed, 01 Dec 2021 19:21:36 -0500

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

rekado pushed a commit to branch core-updates-frozen
in repository guix.

The following commit(s) were added to refs/heads/core-updates-frozen by this 
push:
     new ec4892c  gnu: python2-numpy: Do not inherit native-inputs.
ec4892c is described below

commit ec4892c742ff4e2f00d0fc2595843890ef16afa3
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Thu Dec 2 00:59:16 2021 +0100

    gnu: python2-numpy: Do not inherit native-inputs.
    
    * gnu/packages/python-xyz.scm (python2-numpy)[native-inputs]: Do not inherit
    from Python 3 variant; use only python2-cython, python2-pytest, and 
gfortran.
    [arguments]: Add phase 'delete-failing-test.
---
 gnu/packages/python-xyz.scm | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index b2b50ed..5fe19ac 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -5358,7 +5358,19 @@ capabilities.")
                       version "/numpy-" version ".tar.gz"))
                 (sha256
                  (base32
-                  "0lg1cycxzi4rvvrd5zxinpdz0ni792fpx6xjd75z1923zcac8qrb")))))))
+                  "0lg1cycxzi4rvvrd5zxinpdz0ni792fpx6xjd75z1923zcac8qrb"))))
+      (arguments
+       (substitute-keyword-arguments (package-arguments numpy)
+         ((#:phases phases)
+          `(modify-phases ,phases
+             (add-after 'unpack 'delete-failing-test
+               (lambda _
+                 ;; There's just one failing test here.
+                 (delete-file "numpy/linalg/tests/test_linalg.py")))))))
+      (native-inputs
+       `(("python-cython" ,python2-cython)
+         ("python-pytest" ,python2-pytest)
+         ("gfortran" ,gfortran))))))
 
 ;; Needed by python-numba, see https://github.com/numba/numba/issues/7176
 (define-public python-numpy-1.20



reply via email to

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