aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/sagemath.scm
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/packages/sagemath.scm')
-rw-r--r--gnu/packages/sagemath.scm59
1 files changed, 45 insertions, 14 deletions
diff --git a/gnu/packages/sagemath.scm b/gnu/packages/sagemath.scm
index dd8c062d31..baa79ab1c0 100644
--- a/gnu/packages/sagemath.scm
+++ b/gnu/packages/sagemath.scm
@@ -22,39 +22,70 @@
#:use-module (guix download)
#:use-module (guix build-system python)
#:use-module (gnu packages algebra)
+ #:use-module (gnu packages compression)
#:use-module (gnu packages multiprecision)
#:use-module (gnu packages python)
#:use-module (gnu packages python-xyz))
(define-public python-cypari2
- (package
- (name "python-cypari2")
- (version "2.0.3")
- (source
+ (package
+ (name "python-cypari2")
+ (version "2.0.3")
+ (source
(origin
(method url-fetch)
(uri (pypi-uri "cypari2" version))
(sha256
- (base32
- "0mghbmilmy34xp1d50xdx76sijqxmpkm2bcgx2v1mdji2ff7n0yc"))))
- (build-system python-build-system)
- (native-inputs
+ (base32
+ "0mghbmilmy34xp1d50xdx76sijqxmpkm2bcgx2v1mdji2ff7n0yc"))))
+ (build-system python-build-system)
+ (native-inputs
`(("python-cython" ,python-cython)))
- (propagated-inputs
+ (propagated-inputs
`(("python-cysignals" ,python-cysignals)))
- (inputs
+ (inputs
`(("gmp" ,gmp)
("pari-gp", pari-gp)))
- (home-page "https://cypari2.readthedocs.io/")
- (synopsis
+ (home-page "https://cypari2.readthedocs.io/")
+ (synopsis
"Python interface to the number theory library libpari")
- (description
+ (description
"Cypari2 provides a Python interface to the number theory library
PARI/GP. It has been spun off from the SageMath mathematics software system,
but it can be used independently.")
- (license license:gpl2+)))
+ (license license:gpl2+)))
(define-public python2-cypari2
(package-with-python2 python-cypari2))
+;; The stable version of the following package is not young enough to be
+;; used with Sage, since it does not support cython. One would need to
+;; use an alpha release. On the other hand, Sage can be built without it.
+(define-public python-gmpy2
+ (package
+ (name "python-gmpy2")
+ (version "2.0.8")
+ (source (origin
+ (method url-fetch)
+ (uri (pypi-uri "gmpy2" version ".zip"))
+ (sha256
+ (base32
+ "0grx6zmi99iaslm07w6c2aqpnmbkgrxcqjrqpfq223xri0r3w8yx"))))
+ (build-system python-build-system)
+ (native-inputs
+ `(("unzip" ,unzip)))
+ (inputs
+ `(("gmp" ,gmp)
+ ("mpfr" ,mpfr)
+ ("mpc" ,mpc)))
+ (home-page "https://github.com/aleaxit/gmpy")
+ (synopsis
+ "GMP/MPIR, MPFR, and MPC interface to Python 2.6+ and 3.x")
+ (description
+ "This package provides a Python interface to the GNU multiprecision
+libraries GMO, MPFR and MPC.")
+ (license license:lgpl3+)))
+
+(define-public python2-gmpy2
+ (package-with-python2 python-gmpy2))