unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#43563] [PATCH] gnu: python-sympy: Update to 1.6.2.
@ 2020-09-22 14:47 Greg Hogan
  2020-09-22 20:08 ` bug#43563: " Efraim Flashner
  0 siblings, 1 reply; 2+ messages in thread
From: Greg Hogan @ 2020-09-22 14:47 UTC (permalink / raw)
  To: 43563

From baefa64d5d4bfd6249a66e26e0cfda85d4c2115d Mon Sep 17 00:00:00 2001
From: Greg Hogan <code@greghogan.com>
Date: Tue, 22 Sep 2020 14:36:18 +0000
Subject: [PATCH] gnu: python-sympy: Update to 1.6.2.

* gnu/packages/python-xyz.scm (python-sympy): Update to 1.6.2.
[source]: Download from pypi.
[arguments]: Make check phase inheritable by python2-sympy.

* gnu/packages/python-xyz.scm (python2-sympy): Update to 1.5.1.
[source]: Download from pypi.
[arguments]: Inherit check phase from python-sympy.
---
 gnu/packages/python-xyz.scm | 30 +++++++++++++-----------------
 1 file changed, 13 insertions(+), 17 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 9e72e8bba0..cb354e9c7b 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -7579,15 +7579,13 @@ multiprecision arithmetic.")
 (define-public python-sympy
   (package
     (name "python-sympy")
-    (version "1.1.1")
+    (version "1.6.2")
     (source
      (origin
        (method url-fetch)
-       (uri (string-append
-             "https://github.com/sympy/sympy/releases/download/sympy-"
-             version "/sympy-" version ".tar.gz"))
+       (uri (pypi-uri "sympy" version))
        (sha256
-        (base32 "190n29sppw7g8ihilc5451y7jlfcaw56crqiqbf1jff43dlmfnxc"))))
+        (base32 "0247skhkxanczpqqdz6n9k1axgpwl665b25hyn9vgr060p4dryhw"))))
     (build-system python-build-system)
     (arguments
      `(#:phases
@@ -7598,7 +7596,9 @@ multiprecision arithmetic.")
          (delete 'check)
          (add-after 'install 'check
            (lambda* (#:key outputs #:allow-other-keys)
-             (invoke "python3" "-c" "import sympy; sympy.test(\"/core\")")
+             (invoke
+               (or (which "python3") (which "python"))
+               "-c" "import sympy; sympy.test(\"/core\")")
              #t)))))
     (propagated-inputs
      `(("python-mpmath" ,python-mpmath)))
@@ -7613,17 +7613,13 @@ as possible in order to be comprehensible and easily extensible.")
 (define-public python2-sympy
   (package
     (inherit (package-with-python2 python-sympy))
-    (arguments
-     `(#:phases
-       (modify-phases %standard-phases
-         ;; Run the core tests after installation.  By default it would run
-         ;; *all* tests, which take a very long time to complete and are known
-         ;; to be flaky.
-         (delete 'check)
-         (add-after 'install 'check
-           (lambda* (#:key outputs #:allow-other-keys)
-             (invoke "python" "-c" "import sympy; sympy.test(\"/core\")")
-             #t)))))))
+    (version "1.5.1")  ; last release for python2
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "sympy" version))
+       (sha256
+        (base32 "0zjfbxlkazzh9z22gf62azrkipb2xw7mpzjz3wl1az9893bh2yfp"))))))
 
 (define-public python-q
   (package
-- 
2.28.0




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

* bug#43563: [PATCH] gnu: python-sympy: Update to 1.6.2.
  2020-09-22 14:47 [bug#43563] [PATCH] gnu: python-sympy: Update to 1.6.2 Greg Hogan
@ 2020-09-22 20:08 ` Efraim Flashner
  0 siblings, 0 replies; 2+ messages in thread
From: Efraim Flashner @ 2020-09-22 20:08 UTC (permalink / raw)
  To: Greg Hogan; +Cc: 43563-done

[-- Attachment #1: Type: text/plain, Size: 242 bytes --]

Looks good! Patch pushed.


-- 
Efraim Flashner   <efraim@flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

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

end of thread, other threads:[~2020-09-22 20:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-09-22 14:47 [bug#43563] [PATCH] gnu: python-sympy: Update to 1.6.2 Greg Hogan
2020-09-22 20:08 ` bug#43563: " Efraim Flashner

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