From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id YMbzF+ANdWQHVgAASxT56A (envelope-from ) for ; Mon, 29 May 2023 22:41:04 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id sAQfGOANdWS5zwAAauVa8A (envelope-from ) for ; Mon, 29 May 2023 22:41:04 +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 E8C3C3AA23 for ; Mon, 29 May 2023 22:41:03 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q3jf9-000546-IX; Mon, 29 May 2023 16:40:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q3jey-0004zG-46 for guix-patches@gnu.org; Mon, 29 May 2023 16:40:08 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q3jex-0001eY-SA for guix-patches@gnu.org; Mon, 29 May 2023 16:40:07 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q3jex-0007pM-OK for guix-patches@gnu.org; Mon, 29 May 2023 16:40:07 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#56729] [RFC PATCH v3 14/32] gnu: Add sagemath-data-conway-polynomials. Resent-From: vicvbcun Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 29 May 2023 20:40:07 +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: Andreas Enge Received: via spool by 56729-submit@debbugs.gnu.org id=B56729.168539279329923 (code B ref 56729); Mon, 29 May 2023 20:40:07 +0000 Received: (at 56729) by debbugs.gnu.org; 29 May 2023 20:39:53 +0000 Received: from localhost ([127.0.0.1]:59268 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q3jej-0007mP-29 for submit@debbugs.gnu.org; Mon, 29 May 2023 16:39:53 -0400 Received: from mo4-p05-ob.smtp.rzone.de ([85.215.255.135]:39403) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q3jeV-0007jY-DH for 56729@debbugs.gnu.org; Mon, 29 May 2023 16:39:42 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1685392778; cv=none; d=strato.com; s=strato-dkim-0002; b=cv2F/MSz8c4NI4BFe6x5hEgVdtSZ0xqwso/OpPh6Me0awnmtvbpyVqCCDmlZdx9cdo FVYgDwt9nxE6tde0ZfwCOUOm9MODhHtMh4lhf70N4FVYbIaL0X0HNStoxtzklTm6hkK3 IgHHGP9iwn0TjThXdMIEcvOluhJPzMm7UWut7F5GrdIOoPLzuOeNtl8CQSr/9Arxc/vX YtBIY0PErXYcJojklUjVn679qkgvEMDlOQUzWtCB6PanHt23taZMVCUDFuSK88lZKoG4 pFYp8ax8eOZtgx3t0Fq+Y2Q/YAD6UIAex/7cs9xCHDjCyT6Xu9NTdFdyovKtObD5YVLt A27w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1685392778; s=strato-dkim-0002; d=strato.com; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Cc:Date: From:Subject:Sender; bh=+V05SgB8ay/fDphUtCmP4VLX7giXdqiZmuAN8uzfRtg=; b=EFK8Rr2YP/6p72UGxFgoSlkHjf2PhIhQOf3ulkunSZ1s+23696o3JOWVvw7GXiDftI oqvf1jwhVLQFvs2GagXlOjnkc+OCu68/iS88NVvmXXpzrkOlNfPzjmx5xVrWA1Di3xRd 8wAZke2Z3vw0sPsMG5VkQdgVHxcNUeTPgEdl3FMpWS0CkNJf5KzinY6UY820h99ZUdcp nBQDrgoq2cKLKkHHYHkoOl+b140RqKnvLvVxFXL1GdrSNUWs+GNyLdh3LWPObRIdeSFA WP6bcYDP/xmPZv3oXLGCAyQbbyqFS9YQj8SJqOCC2mWM6Gq3vHN4UOKhAQW7tB4g10/b zYkA== ARC-Authentication-Results: i=1; strato.com; arc=none; dkim=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1685392778; 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=+V05SgB8ay/fDphUtCmP4VLX7giXdqiZmuAN8uzfRtg=; b=UO16jMTWTkLnthNSS3gC+zFmAAO461XE+J2FprPrdP/U52XZ4bV1vrhRRvllyl+URK aRdwvsenlS60snKT3bLXnlCueO3ov73s9rMFk1kPZWTH/PgbboTt/mv1TQOMEl4q1xm2 XeACxLdttpkfx9AlexVaTMouniwboXn6Hr+TstKu+3KsPtT8snVHuPyK53OQE6CY0iT9 mG7MW3ULjD2WRSRrkgYBpkD4ThttZcOGSdVe9TvWmKjN2Ve9i9qYsktzDQQMaH7AlL+R n4ugHRZ3JbC4a8DOZYgnhF/107yuEpJFGi7Gtvv3QbzwOEFBtMe2hKKJpkgy8Socg5/X Mq5w== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1685392778; s=strato-dkim-0003; d=ikherbers.com; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Cc:Date: From:Subject:Sender; bh=+V05SgB8ay/fDphUtCmP4VLX7giXdqiZmuAN8uzfRtg=; b=2kprQSC9CQa2xQgup0Pf+gn9tZRir0wgGaTHToV9q7Das8kg27qkN7CjfSJCrsE5Qt VsakkRr80zW3I2qjPUCw== X-RZG-AUTH: ":IUwNfkitaf3qOWm2b/jA5tveVwUUcwH3PkiYp6DPxTDDEo4xO9elHkvI0r6JTEEwPZQIGpITRHJw3QBV19xfC5caujhgQnTJiaYr" X-RZG-CLASS-ID: mo05 Received: from lambda.localdomain by smtp.strato.de (RZmta 49.4.0 AUTH) with ESMTPSA id z055e6z4TKdcn7Q (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Mon, 29 May 2023 22:39:38 +0200 (CEST) From: vicvbcun Date: Mon, 29 May 2023 22:38:23 +0200 Message-Id: X-Mailer: git-send-email 2.40.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="us-ascii" 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=2; s=key1; d=yhetil.org; t=1685392864; a=rsa-sha256; cv=fail; b=ap8fz+BEBlW6atSDj7UuBhZyDR/BwJkTt0z8gEpgFfORvLfCxUguS+gHynY0s89Mp02emh e8CsVWbIJGiCWUFEWTIrJ34BcY9LVryAs80aBTzArhuLtGzOfxHIsWsf6o88IsM/8r1ewK qR06vAMeeOl667Nq1VqSn2acx1uMalR3xKONjXNcLjqw7bdJJqmm6dvx1ELyW60KAcEUkA Htk4zc7wfsgXfE1/OJLQYPefuCvEanjU18DsJvnVdp1hZINas9hggG/DO57lA+HaWKJNtQ cNUjYry59uq2DOcv1+ebbdVDMCpEC1ljDo64GnVnbtJdlh+r1WY5AxGvW8rAnA== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=ikherbers.com header.s=strato-dkim-0002 header.b=UO16jMTW; dkim=fail ("headers eddsa verify failed") header.d=ikherbers.com header.s=strato-dkim-0003 header.b=2kprQSC9; 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"; arc=reject ("signature check failed: fail, {[1] = sig:strato.com:reject}") ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1685392864; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: 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=+V05SgB8ay/fDphUtCmP4VLX7giXdqiZmuAN8uzfRtg=; b=CQB41Kw9wnJNkmjRzA52GMCQeuV3RHCqN2PIB+RpnmDJqKEhS4kgSig2QtCNdYxV5ivfEV Ti14ME7eYohsrbACsG7B/6UQlgB2DzrIXst8INazSUtjMl+WitXzFGJULGApNjAnhbCkZL VpNYO+vYJmtQ2uJ2GiWMBogFzyXD471XsEDqaW9qwHhkP5bSApozxD7tRlU7uii2dWIpHC cWI2jia8JBOBkdab1TbF0UWC4AQlxLa3RmF0OuYahxg2dGnBFBwiGIjMyf+I5RIyxpzYb+ HmUXfyjExi60jFoinEXtiCU4+e5aiO/cvUBdRD6jukGp7heqmENv9coRl8PSXQ== X-Migadu-Spam-Score: 0.89 X-Spam-Score: 0.89 X-Migadu-Queue-Id: E8C3C3AA23 X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=ikherbers.com header.s=strato-dkim-0002 header.b=UO16jMTW; dkim=fail ("headers eddsa verify failed") header.d=ikherbers.com header.s=strato-dkim-0003 header.b=2kprQSC9; 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"; arc=reject ("signature check failed: fail, {[1] = sig:strato.com:reject}") X-TUID: CQuUx64S0ju7 * gnu/packages/sagemath.scm (sagemath-data-conway-polynomials): New variable. --- gnu/packages/sagemath.scm | 47 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/gnu/packages/sagemath.scm b/gnu/packages/sagemath.scm index b68d4273f2..1a1d81b6a7 100644 --- a/gnu/packages/sagemath.scm +++ b/gnu/packages/sagemath.scm @@ -25,6 +25,7 @@ (define-module (gnu packages sagemath) #:use-module (guix build-system copy) #:use-module (guix build-system gnu) #:use-module (guix build-system python) + #:use-module (guix build-system trivial) #:use-module (guix download) #:use-module (guix gexp) #:use-module (guix git-download) @@ -33,8 +34,10 @@ (define-module (gnu packages sagemath) #:use-module (gnu packages) #:use-module (gnu packages algebra) #:use-module (gnu packages autotools) + #:use-module (gnu packages base) #: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) @@ -359,3 +362,47 @@ (define-public sagemath-data-combinatorial-designs Handbook of Combinatorial Designs, 2ed. @end itemize") (license license:public-domain))) + +(define-public sagemath-data-conway-polynomials + (let + ((install-py + (origin + (method url-fetch) + (uri + "https://raw.githubusercontent.com/sagemath/sage/9.8/build/pkgs/conway_polynomials/spkg-install.py") + (sha256 (base32 + "1bwnqasnyv793hxg29viing4dnliz29grkhldsirq19d509yk1fs"))))) + (package + (name "sagemath-data-conway-polynomials") + (version "0.5") + (source (origin + (method url-fetch) + (uri (string-append + "mirror://sagemath/spkg/upstream/conway_polynomials/conway_polynomials-" + version ".tar.bz2")) + (sha256 + (base32 + "05zb1ly9x2bbscqv0jgc45g48xx77mfs7qdbqhn4ihmihn57iwnq")))) + (build-system trivial-build-system) + (arguments + (list #:modules '((guix build utils)) + #:builder #~(begin + (use-modules (guix build utils)) + + (setenv "PATH" + (string-join (list #+(file-append bzip2 "/bin") + #+(file-append tar "/bin") + #+(file-append python "/bin")) + ":")) + ;; the output directory + (setenv "SAGE_SHARE" (string-append #$output "/share")) + (setenv "PYTHONPATH" (getcwd)) + + (invoke "tar" "-xvf" #$source) + (symlink (string-append "conway_polynomials-" #$version) "src") + (invoke "python3" #$install-py)))) + (home-page + "https://www.math.rwth-aachen.de/~Frank.Luebeck/data/ConwayPol/index.html") + (synopsis "Tables of Conway polynomials over finite fields") + (description synopsis) + (license #f)))) -- 2.40.1