@@ -30,6 +30,7 @@ (define-module (gnu packages multiprecision)
#:use-module (gnu packages)
#:use-module (gnu packages autotools)
#:use-module (gnu packages bison)
+ #:use-module (gnu packages compression)
#:use-module (gnu packages flex)
#:use-module (gnu packages m4)
#:use-module (gnu packages gcc)
@@ -39,7 +40,8 @@ (define-module (gnu packages multiprecision)
#:use-module (guix git-download)
#:use-module (guix packages)
#:use-module (guix utils)
- #:use-module (guix build-system gnu))
+ #:use-module (guix build-system gnu)
+ #:use-module (guix build-system python))
(define-public gmp
(package
@@ -116,6 +118,30 @@ (define-public gmp-6.0
(patches (search-patches "gmp-arm-asm-nothumb.patch"
"gmp-faulty-test.patch"))))))
+(define-public python-gmpy2
+ (package
+ (name "python-gmpy2")
+ (version "2.1.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "gmpy2" version))
+ (sha256
+ (base32
+ "1lc29g3s4z5f1qbsc2x9i9sf6wrpni9pwiwmb1wwx3hjr85i8xfs"))))
+ (build-system python-build-system)
+ (native-inputs
+ (list unzip))
+ (inputs
+ (list gmp mpfr 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 lgpl3+)))
+
(define-public mpfr
(package
(name "mpfr")
@@ -33,7 +33,6 @@ (define-module (gnu packages sagemath)
#:use-module (gnu packages autotools)
#:use-module (gnu packages bdw-gc)
#:use-module (gnu packages boost)
- #:use-module (gnu packages compression)
#:use-module (gnu packages image)
#:use-module (gnu packages lisp)
#:use-module (gnu packages multiprecision)
@@ -70,30 +69,6 @@ (define-public python-cypari2
but it can be used independently.")
(license license:gpl2+)))
-(define-public python-gmpy2
- (package
- (name "python-gmpy2")
- (version "2.1.2")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "gmpy2" version))
- (sha256
- (base32
- "1lc29g3s4z5f1qbsc2x9i9sf6wrpni9pwiwmb1wwx3hjr85i8xfs"))))
- (build-system python-build-system)
- (native-inputs
- (list unzip))
- (inputs
- (list gmp mpfr 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 cliquer
(package
(name "cliquer")