From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id iJRvHpiA7l5AVwAA0tVLHw (envelope-from ) for ; Sat, 20 Jun 2020 21:33:12 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id gIBTGpiA7l58JQAA1q6Kng (envelope-from ) for ; Sat, 20 Jun 2020 21:33:12 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 28ECF9401AE for ; Sat, 20 Jun 2020 21:33:12 +0000 (UTC) Received: from localhost ([::1]:57548 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jml6t-0008UU-4W for larch@yhetil.org; Sat, 20 Jun 2020 17:33:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57448) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jml6k-0008St-T2 for guix-patches@gnu.org; Sat, 20 Jun 2020 17:33:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:47322) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jml6k-0005kk-Jo for guix-patches@gnu.org; Sat, 20 Jun 2020 17:33:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jml6k-0007Bf-Gu for guix-patches@gnu.org; Sat, 20 Jun 2020 17:33:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#41971] [PATCH 5/5] [WIP] gnu: Add sagemath. References: <20200620212802.31906-1-kuba@kadziolka.net> In-Reply-To: <20200620212802.31906-1-kuba@kadziolka.net> Resent-From: Jakub =?UTF-8?Q?K=C4=85dzio=C5=82ka?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 20 Jun 2020 21:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41971 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 41971@debbugs.gnu.org Received: via spool by 41971-submit@debbugs.gnu.org id=B41971.159268874327565 (code B ref 41971); Sat, 20 Jun 2020 21:33:02 +0000 Received: (at 41971) by debbugs.gnu.org; 20 Jun 2020 21:32:23 +0000 Received: from localhost ([127.0.0.1]:58866 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jml67-0007AX-7k for submit@debbugs.gnu.org; Sat, 20 Jun 2020 17:32:23 -0400 Received: from pat.zlotemysli.pl ([37.59.186.212]:38950) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jml64-0007AL-Kk for 41971@debbugs.gnu.org; Sat, 20 Jun 2020 17:32:21 -0400 Received: (qmail 20376 invoked by uid 1009); 20 Jun 2020 23:32:19 +0200 Received: from 188.123.215.55 (kuba@kadziolka.net@188.123.215.55) by pat.zlotemysli.pl (envelope-from , uid 1002) with qmail-scanner-2.08st (clamdscan: 0.98.6/25848. spamassassin: 3.4.0. perlscan: 2.08st. Clear:RC:1(188.123.215.55):. Processed in 0.037576 secs); 20 Jun 2020 21:32:19 -0000 Received: from unknown (HELO localhost.localdomain) (kuba@kadziolka.net@188.123.215.55) by pat.zlotemysli.pl with AES256-SHA encrypted SMTP; 20 Jun 2020 23:32:19 +0200 From: Jakub =?UTF-8?Q?K=C4=85dzio=C5=82ka?= Date: Sat, 20 Jun 2020 23:32:18 +0200 Message-Id: <20200620213218.2677-1-kuba@kadziolka.net> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Qmailux-2.08st: added fake Content-Type header Content-Type: text/plain X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.0 (-) X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Spam-Score: 3.99 X-TUID: tDZ0bkTWmkos --- 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