guix-commits
[Top][All Lists]
Advanced

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

02/05: gnu: Add python-mpmath.


From: Marius Bakke
Subject: 02/05: gnu: Add python-mpmath.
Date: Fri, 16 Dec 2016 12:45:10 +0000 (UTC)

mbakke pushed a commit to branch python-tests
in repository guix.

commit 58a35665d98386d98e7fbb84812d2b2282990eca
Author: Marius Bakke <address@hidden>
Date:   Thu Dec 15 15:59:23 2016 +0100

    gnu: Add python-mpmath.
    
    * gnu/packages/python.scm (python-mpmath, python2-mpmath): New variables.
---
 gnu/packages/python.scm |   30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 7e7e54f..0414e88 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -5406,6 +5406,36 @@ and statistical routines from scipy and statsmodels.")
       (propagated-inputs `(("python2-pytz" ,python2-pytz)
                            ,@(package-propagated-inputs base))))))
 
+(define-public python-mpmath
+  (package
+  (name "python-mpmath")
+  (version "0.19")
+  (source (origin
+            (method url-fetch)
+            (uri (string-append "http://mpmath.org/files/mpmath-";
+                                version ".tar.gz"))
+            (sha256
+             (base32
+              "08ijsr4ifrqv3cjc26mkw0dbvyygsa99in376hr4b96ddm1gdpb8"))))
+  (build-system python-build-system)
+  (arguments
+   '(#:phases
+     (modify-phases %standard-phases
+       (replace 'check
+         (lambda _
+           (zero?
+            (system* "python" "mpmath/tests/runtests.py" "-local")))))))
+  (home-page "http://mpmath.org";)
+  (synopsis "Arbitrary-precision floating-point arithmetic in python")
+  (description
+    "@code{mpmath} can be used as an arbitrary-precision substitute for
+Python's float/complex types and math/cmath modules, but also does much
+more advanced mathematics.")
+  (license license:bsd-3)))
+
+(define-public python2-mpmath
+  (package-with-python2 python-mpmath))
+
 (define-public python-sympy
   (package
     (name "python-sympy")



reply via email to

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