From: "Jakub Kądziołka" <kuba@kadziolka.net>
To: 41971@debbugs.gnu.org
Subject: [bug#41971] [PATCH 5/5] [WIP] gnu: Add sagemath.
Date: Sat, 20 Jun 2020 23:32:18 +0200 [thread overview]
Message-ID: <20200620213218.2677-1-kuba@kadziolka.net> (raw)
In-Reply-To: <20200620212802.31906-1-kuba@kadziolka.net>
---
gnu/packages/sagemath.scm | 123 +++++++++++++++++++++++++++++++++++++-
1 file changed, 122 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/sagemath.scm b/gnu/packages/sagemath.scm
index 8c837fdaeb..9809f93060 100644
--- a/gnu/packages/sagemath.scm
+++ b/gnu/packages/sagemath.scm
@@ -29,16 +29,33 @@
#:use-module (guix utils)
#:use-module (gnu packages)
#:use-module (gnu packages algebra)
+ #:use-module (gnu packages assembly)
#:use-module (gnu packages autotools)
#:use-module (gnu packages bdw-gc)
#:use-module (gnu packages boost)
+ #:use-module (gnu packages cmake)
+ #:use-module (gnu packages commencement)
#:use-module (gnu packages compression)
+ #:use-module (gnu packages gd)
+ #:use-module (gnu packages gettext)
+ #:use-module (gnu packages graph)
#:use-module (gnu packages image)
+ #:use-module (gnu packages libffi)
#:use-module (gnu packages lisp)
+ #:use-module (gnu packages m4)
+ #:use-module (gnu packages maths)
#:use-module (gnu packages multiprecision)
+ #:use-module (gnu packages ncurses)
+ #:use-module (gnu packages networking)
+ #:use-module (gnu packages pcre)
+ #:use-module (gnu packages perl)
#:use-module (gnu packages pkg-config)
#:use-module (gnu packages python)
- #:use-module (gnu packages python-xyz))
+ #:use-module (gnu packages python-xyz)
+ #:use-module (gnu packages readline)
+ #:use-module (gnu packages sqlite)
+ #:use-module (gnu packages tex)
+ #:use-module (gnu packages tls))
(define-public python-cypari2
@@ -432,3 +449,107 @@ zeta function and its twists by quadratic characters.")
a given height bound on a hyperelliptic curve in a very efficient way,
by using an optimized quadratic sieve algorithm.")
(license license:gpl2+)))
+
+(define-public sagemath
+ (package
+ (name "sagemath")
+ (version "9.1")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "git://git.sagemath.org/sage.git/")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1imlqa5mg7xxp6xbzzjnjjpd8k79vlx48zm0qfj7cd4bi0i809pp"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:use-setuptools? #f
+ #:tests? #f
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'prepare
+ (lambda _
+ (setenv "HOME" "/tmp")
+ (setenv "SAGE_ROOT" (getcwd))
+ (setenv "SAGE_LOCAL" (getcwd))
+ (setenv "SAGE_SHARE" (string-append (getcwd) "/share"))
+ (setenv "SAGE_NUM_THREADS" (number->string (parallel-job-count)))
+ (mkdir-p "var/lib/sage/installed")
+ (chdir "src")
+ #t)))))
+ (propagated-inputs
+ `(("python-cypari2" ,python-cypari2)
+ ("python-cysignals" ,python-cysignals)
+ ("python-cython" ,python-cython)
+ ("python-gmpy2" ,python-gmpy2)
+ ("python-jinja2" ,python-jinja2)
+ ("python-numpy" ,python-numpy)
+ ("python-pkgconfig" ,python-pkgconfig)
+ ("python-six" ,python-six)))
+ (inputs
+ `(("arb" ,arb)
+ ("boost" ,boost) ; TODO: Is this needed?
+ ("braiding" ,libbraiding)
+ ("brial" ,brial)
+ ("bzip2" ,bzip2)
+ ("cliquer" ,cliquer)
+ ("ecl" ,ecl-16)
+ ("eclib" ,eclib)
+ ("ecm" ,gmp-ecm)
+ ("ecm:libatomic-ops" ,libatomic-ops)
+ ("flint" ,flint)
+ ("gf2x" ,gf2x)
+ ("gap" ,gap)
+ ("gc" ,libgc)
+ ("gd" ,gd)
+ ("givaro" ,givaro)
+ ("glpk" ,glpk)
+ ("gmp" ,gmp)
+ ("gsl" ,gsl)
+ ("homfly" ,libhomfly)
+ ("iml" ,iml)
+ ("lcalc" ,lcalc)
+ ("libffi" ,libffi)
+ ("libpng" ,libpng)
+ ("linbox" ,linbox)
+ ("lrcalc" ,lrcalc)
+ ("m4ri" ,m4ri)
+ ("m4rie" ,m4rie)
+ ("mpc" ,mpc)
+ ("mpfi" ,mpfi)
+ ("mpfr" ,mpfr)
+ ("ncurses" ,ncurses)
+ ("ntl" ,ntl)
+ ("openssl" ,openssl)
+ ("pari" ,pari-gp)
+ ("pcre" ,pcre)
+ ("planarity" ,edge-addition-planarity-suite)
+ ("ppl" ,ppl)
+ ("pynac" ,pynac)
+ ("rw" ,rw)
+ ("ratpoints" ,ratpoints)
+ ("readline" ,readline)
+ ("singular" ,singular)
+ ("sqlite" ,sqlite)
+ ("symmetrica" ,symmetrica)
+ ("texlive" ,texlive-tiny)
+ ("zeromq" ,zeromq) ; TODO: Is this needed?
+ ("zlib" ,zlib)
+ ("zn-poly" ,zn-poly)))
+ (native-inputs
+ `(("autoconf" ,autoconf)
+ ("automake" ,automake)
+ ("cmake" ,cmake)
+ ("gettext" ,gettext-minimal)
+ ("gfortran" ,gfortran-toolchain)
+ ("m4" ,m4)
+ ("perl" ,perl)
+ ("pkg-config" ,pkg-config)
+ ("yasm" ,yasm)))
+ (home-page "https://www.sagemath.org/")
+ (synopsis "Python-based computer algebra system")
+ (description "TODO")
+ (license license:gpl3)))
--
2.26.2
next prev parent reply other threads:[~2020-06-20 21:33 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-20 21:28 [bug#41971] [WIP PATCH 0/5] Add SageMath Jakub Kądziołka
2020-06-20 21:31 ` [bug#41971] [PATCH 1/5] gnu: linbox: Fix linking of dependant packages Jakub Kądziołka
2020-06-20 21:31 ` [bug#41971] [PATCH 2/5] gnu: sagemath: Remove unnecessary old versions of packages Jakub Kądziołka
2020-06-20 21:31 ` [bug#41971] [PATCH 3/5] gnu: Add ECL 16.1.3 for Sage Jakub Kądziołka
2020-06-20 21:32 ` [bug#41971] [PATCH 4/5] gnu: lcalc: Don't rename the include directory Jakub Kądziołka
2020-06-20 21:32 ` Jakub Kądziołka [this message]
2020-07-07 12:47 ` [bug#41971] [WIP PATCH 0/5] Add SageMath Nicolas Goaziou
2020-07-10 21:06 ` bug#40283: " Jakub Kądziołka
2023-03-20 14:13 ` Ludovic Courtès
2023-03-20 15:01 ` Andreas Enge
2023-03-20 18:13 ` Maja Kądziołka
2023-03-21 9:40 ` bug#41971: " Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200620213218.2677-1-kuba@kadziolka.net \
--to=kuba@kadziolka.net \
--cc=41971@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).