From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id mGZjEVYw8WJTLgAAbAwnHQ (envelope-from ) for ; Mon, 08 Aug 2022 17:48:38 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id YG9qEVYw8WL+DAEA9RJhRA (envelope-from ) for ; Mon, 08 Aug 2022 17:48:38 +0200 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 1E72E3475 for ; Mon, 8 Aug 2022 17:48:38 +0200 (CEST) Received: from localhost ([::1]:48576 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oL4zc-0000n7-6y for larch@yhetil.org; Mon, 08 Aug 2022 11:48:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41244) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oL4zH-0000da-3V for guix-patches@gnu.org; Mon, 08 Aug 2022 11:48:15 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:52023) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oL4zG-0006pY-R3 for guix-patches@gnu.org; Mon, 08 Aug 2022 11:48:14 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oL4zG-0006Ba-Nm for guix-patches@gnu.org; Mon, 08 Aug 2022 11:48:14 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#56729] [RFC PATCH v2 29/29] gnu: Add sagemath-tests. Resent-From: vicvbcun Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 08 Aug 2022 15:48:14 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56729 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 56729@debbugs.gnu.org Cc: Ludovic =?UTF-8?Q?Court=C3=A8s?= , Andreas Enge Received: via spool by 56729-submit@debbugs.gnu.org id=B56729.165997368423572 (code B ref 56729); Mon, 08 Aug 2022 15:48:14 +0000 Received: (at 56729) by debbugs.gnu.org; 8 Aug 2022 15:48:04 +0000 Received: from localhost ([127.0.0.1]:41743 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oL4z5-00067t-EU for submit@debbugs.gnu.org; Mon, 08 Aug 2022 11:48:04 -0400 Received: from mo4-p05-ob.smtp.rzone.de ([85.215.255.136]:46369) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oL4ya-00062K-Ss for 56729@debbugs.gnu.org; Mon, 08 Aug 2022 11:47:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1659973640; s=strato-dkim-0002; d=ikherbers.com; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Cc:Date: From:Subject:Sender; bh=zsABt8qczPj6AwY3nZrnJbVbpvL/TIf6v9/4QgPtmT0=; b=o+cO8QqR8wG0Z4hcOKPDQD2taYey3N+TM2BMZkr8B+UGVrBYcWx8vEW7M057xnjWsv mdno7ox2iqoh5vH7pGp2V9an6hC7IR1vHtpI5ovvPv9UcDO1KP4LVOb9bjWXOLosrkH6 AD7yl/bg5dVLrzOJd4NXsWqomEf41ZsffgrwyOe3+VOOZzezqpAOFXTCW5KFQBEK7nQc ry5AKH8RZ+VRNkdrlfHgTHY/cIrFMqxKFfNGiHrWWkkFjhlBbGmg4PUB9uh2hWxG4+R0 ERIwUBKXWrtr5xlagRTE5GMrxTWEaid0I1lhCy0S0+grGFIgQK5fRMSvz7ChKH9e/kbq W/SQ== X-RZG-AUTH: ":IUwNfkitaf3qOWm2b/jA5tveVwUUcwH3PkiYp6DPxTDDEo4xO9ymAEzKSWlvmNAhIG6s" X-RZG-CLASS-ID: mo05 Received: from lambda.localdomain by smtp.strato.de (RZmta 47.47.0 DYNA|AUTH) with ESMTPSA id 0cac6cy78FlKoRd (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Mon, 8 Aug 2022 17:47:20 +0200 (CEST) From: vicvbcun Date: Mon, 8 Aug 2022 17:46:04 +0200 Message-Id: X-Mailer: git-send-email 2.37.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1659973718; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=zsABt8qczPj6AwY3nZrnJbVbpvL/TIf6v9/4QgPtmT0=; b=RAsCPlaPFhGAUfx3GO0/ENd48irML5feGjmV61wNh4cLO8oBJCXtzr8Pfo+vy6iT6EUVVA UGkCwPuOdY7Vb2QsdRyZXom6YNZHSDWA3Bm/u32HKTKEp9DyOspNvxLe55sJKgPjfFTCi7 FDd6DCiO9NkZ+A2paV4rlWMD7baw8/0ht/pTxIIDAUzOM4FIOhANT7nIpFTHglEIGLkLhG 0wdMHhLFiY0pDcMj+AwE/w1jHLpU7xDubnVr93+kBOZKq8i58pOomELnr58PGe+179pST5 b4u+fN6Rq0vqGpKPSEbIEvWKrA+NO8qGKW3PKOERPMf0UsNdygv0E21vJaaMNQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1659973718; a=rsa-sha256; cv=none; b=TcxVDqSQwym4D2LNyaAQYuNyau2EwD3kiMDjr921xTi9aglzuWrgQUGv9oNSk3M6PbLPG9 kt0bQ7TcyWY9JbW1dvxgf6CQDYqrQPBdG5Mv+i5/O2nIgSckYt0uTBe/QJUup0eOo72LWk fg5bi4m9DTVZPazaAV0LEgWke+YfOhFts36bX2dE1aRL7FxbdIOxI4pjQmRhrJnCpNuQBI 6Nz4e9vM3E3tt6rxyDciYlrxB6kZ9JPZDhXIJowJ6e1GsxKJyqgI6Xdf/Scs5MrlmmqXxk pEQwI/HPf7JupFbeKVz4PnqJN8Qb27nuPgAbybzcbzmlPRb9fEn07ALvxxE8+A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=ikherbers.com header.s=strato-dkim-0002 header.b=o+cO8QqR; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 2.61 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=ikherbers.com header.s=strato-dkim-0002 header.b=o+cO8QqR; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 1E72E3475 X-Spam-Score: 2.61 X-Migadu-Scanner: scn1.migadu.com X-TUID: WRm6wYZ5ZQtB * gnu/packages/sagemath.scm (sagemath-tests): New variable. --- gnu/packages/sagemath.scm | 51 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/gnu/packages/sagemath.scm b/gnu/packages/sagemath.scm index af0aad04dc..7a38a462b3 100644 --- a/gnu/packages/sagemath.scm +++ b/gnu/packages/sagemath.scm @@ -968,3 +968,54 @@ (define-public sagemath-with-dependencies (synopsis "") (description "") (license #f))) + +(define-public sagemath-tests + (package + (name "sagemath-tests") + (version "9.6") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/sagemath/sage") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0k91l3aid09hy94ps2r6acg22bxgsprxnh1b92hma3z1mn0ii3s1")))) + (build-system python-build-system) + (arguments + (list #:tests? #f + #:modules '((guix build python-build-system) + (guix build utils) + (ice-9 ftw)) + #:phases #~(modify-phases %standard-phases + (add-after 'unpack 'prepare + (lambda _ + (setenv "MAXIMA_FAS" #$(file-append maxima "/lib/maxima/" (package-version maxima) "/binary-ecl/maxima.fas")) + (setenv "COMBINATORIAL_DESIGN_DATA_DIR" #$(file-append sagemath-data-combinatorial-designs "/share/combinatorial_designs")) + (setenv "CONWAY_POLYNOMIALS_DATA_DIR" #$(file-append sagemath-data-conway-polynomials "/share/conway_polynomials")) + (setenv "ELLCURVE_DATA_DIR" #$(file-append sagemath-data-elliptic-curves "/share/ellcurves")) + (setenv "GRAPHS_DATA_DIR" #$(file-append sagemath-data-graphs "/share/graphs")) + (setenv "CREMONA_MINI_DATA_DIR" #$(file-append sagemath-data-elliptic-curves "/share/cremona")) + (setenv "GAP_SO" #$(file-append gap "/lib/libgap.so")) + (setenv "GAP_ROOT_DIR" #$(file-append gap "/share/gap")) + (setenv "GP_DATA_DIR" #$(file-append pari-galdata "/share/pari")) + (setenv "POLYTOPE_DATA_DIR" #$(file-append sagemath-data-polytopes-db "/share/reflexive_polytopes")) + (setenv "HOME" (string-append (getenv "TMPDIR") "/home")) + (chdir "src"))) + (replace 'build + (lambda _ + (invoke #$(file-append sagemath-just-build "/bin/sage") + "-t" + "--nthreads" (number->string (parallel-job-count)) + "--all"))) + (replace 'install + (lambda _ + (with-output-to-file #$output + (lambda () (display ""))))) + (delete 'install-license-files)))) + (native-inputs (list sagemath-with-dependencies)) + (home-page "") + (synopsis "") + (description "") + (license #f))) -- 2.37.0