unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#45699] [PATCH] gnu: python-scipy: Update to 1.6.0.
@ 2021-01-06 18:47 Greg Hogan
  2021-02-09 15:50 ` bug#45699: " Jelle Licht
  0 siblings, 1 reply; 2+ messages in thread
From: Greg Hogan @ 2021-01-06 18:47 UTC (permalink / raw)
  To: 45699


[-- Attachment #1.1: Type: text/plain, Size: 2273 bytes --]

From d03cf7fcf8351827dcf5d1a342c26bc5ffee7046 Mon Sep 17 00:00:00 2001
From: Greg Hogan <code@greghogan.com>
Date: Tue, 5 Jan 2021 17:09:15 +0000
Subject: [PATCH] gnu: python-scipy: Update to 1.6.0.

* gnu/packages/python-xyz.scm (python-scipy): Update to 1.6.0.
[inputs]: Add pybind11.
[arguments]<#:phases>['change-home-dir]: New phase.
---
 gnu/packages/python-science.scm | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/python-science.scm
b/gnu/packages/python-science.scm
index 99903ef247..a1e2b57669 100644
--- a/gnu/packages/python-science.scm
+++ b/gnu/packages/python-science.scm
@@ -10,6 +10,7 @@
 ;;; Copyright © 2019 Giacomo Leidi <goodoldpaul@autistici.org>
 ;;; Copyright © 2020 Pierre Langlois <pierre.langlois@gmx.com>
 ;;; Copyright © 2020 Vinicius Monego <monego@posteo.net>
+;;; Copyright © 2021 Greg Hogan <code@greghogan.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -50,13 +51,13 @@
 (define-public python-scipy
   (package
     (name "python-scipy")
-    (version "1.3.2")
+    (version "1.6.0")
     (source
      (origin
        (method url-fetch)
        (uri (pypi-uri "scipy" version))
        (sha256
-        (base32 "192d8dsybvhv19igkrsafbdafx198nz7pibkjgrqjhlr66s3jfd0"))))
+        (base32 "0rh5b1rwdcvvagld8vpxnpaibszy1skpx39a0fwzd5gx5pwcjvfb"))))
     (build-system python-build-system)
     (propagated-inputs
      `(("python-numpy" ,python-numpy)
@@ -64,7 +65,8 @@
        ("python-pyparsing" ,python-pyparsing)))
     (inputs
      `(("lapack" ,lapack)
-       ("openblas" ,openblas)))
+       ("openblas" ,openblas)
+       ("pybind11" ,pybind11)))
     (native-inputs
      `(("python-cython" ,python-cython)
        ("python-pytest" ,python-pytest)
@@ -77,6 +79,11 @@
     (arguments
      `(#:phases
        (modify-phases %standard-phases
+         (add-before 'build 'change-home-dir
+           (lambda _
+             ;; Change from /homeless-shelter to /tmp for write permission.
+             (setenv "HOME" "/tmp")
+             #t))
          (add-after 'unpack 'disable-broken-tests
            (lambda _
              (substitute*
"scipy/sparse/linalg/dsolve/tests/test_linsolve.py"
-- 
2.30.0

[-- Attachment #1.2: Type: text/html, Size: 3474 bytes --]

[-- Attachment #2: 0001-gnu-python-scipy-Update-to-1.6.0.patch --]
[-- Type: application/octet-stream, Size: 2208 bytes --]

From d03cf7fcf8351827dcf5d1a342c26bc5ffee7046 Mon Sep 17 00:00:00 2001
From: Greg Hogan <code@greghogan.com>
Date: Tue, 5 Jan 2021 17:09:15 +0000
Subject: [PATCH] gnu: python-scipy: Update to 1.6.0.

* gnu/packages/python-xyz.scm (python-scipy): Update to 1.6.0.
[inputs]: Add pybind11.
[arguments]<#:phases>['change-home-dir]: New phase.
---
 gnu/packages/python-science.scm | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm
index 99903ef247..a1e2b57669 100644
--- a/gnu/packages/python-science.scm
+++ b/gnu/packages/python-science.scm
@@ -10,6 +10,7 @@
 ;;; Copyright © 2019 Giacomo Leidi <goodoldpaul@autistici.org>
 ;;; Copyright © 2020 Pierre Langlois <pierre.langlois@gmx.com>
 ;;; Copyright © 2020 Vinicius Monego <monego@posteo.net>
+;;; Copyright © 2021 Greg Hogan <code@greghogan.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -50,13 +51,13 @@
 (define-public python-scipy
   (package
     (name "python-scipy")
-    (version "1.3.2")
+    (version "1.6.0")
     (source
      (origin
        (method url-fetch)
        (uri (pypi-uri "scipy" version))
        (sha256
-        (base32 "192d8dsybvhv19igkrsafbdafx198nz7pibkjgrqjhlr66s3jfd0"))))
+        (base32 "0rh5b1rwdcvvagld8vpxnpaibszy1skpx39a0fwzd5gx5pwcjvfb"))))
     (build-system python-build-system)
     (propagated-inputs
      `(("python-numpy" ,python-numpy)
@@ -64,7 +65,8 @@
        ("python-pyparsing" ,python-pyparsing)))
     (inputs
      `(("lapack" ,lapack)
-       ("openblas" ,openblas)))
+       ("openblas" ,openblas)
+       ("pybind11" ,pybind11)))
     (native-inputs
      `(("python-cython" ,python-cython)
        ("python-pytest" ,python-pytest)
@@ -77,6 +79,11 @@
     (arguments
      `(#:phases
        (modify-phases %standard-phases
+         (add-before 'build 'change-home-dir
+           (lambda _
+             ;; Change from /homeless-shelter to /tmp for write permission.
+             (setenv "HOME" "/tmp")
+             #t))
          (add-after 'unpack 'disable-broken-tests
            (lambda _
              (substitute* "scipy/sparse/linalg/dsolve/tests/test_linsolve.py"
-- 
2.30.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#45699: [PATCH] gnu: python-scipy: Update to 1.6.0.
  2021-01-06 18:47 [bug#45699] [PATCH] gnu: python-scipy: Update to 1.6.0 Greg Hogan
@ 2021-02-09 15:50 ` Jelle Licht
  0 siblings, 0 replies; 2+ messages in thread
From: Jelle Licht @ 2021-02-09 15:50 UTC (permalink / raw)
  To: Greg Hogan, 45699-done

Greg Hogan <code@greghogan.com> writes:

> From d03cf7fcf8351827dcf5d1a342c26bc5ffee7046 Mon Sep 17 00:00:00 2001
> From: Greg Hogan <code@greghogan.com>
> Date: Tue, 5 Jan 2021 17:09:15 +0000
> Subject: [PATCH] gnu: python-scipy: Update to 1.6.0.
>
> * gnu/packages/python-xyz.scm (python-scipy): Update to 1.6.0.
> [inputs]: Add pybind11.
> [arguments]<#:phases>['change-home-dir]: New phase.

Pushed as 2571cf025e61f9f767e316841961904912beedf0 to master, thanks!




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-02-09 15:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-06 18:47 [bug#45699] [PATCH] gnu: python-scipy: Update to 1.6.0 Greg Hogan
2021-02-09 15:50 ` bug#45699: " Jelle Licht

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).