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 mNWNO20w8WIG/wAAbAwnHQ (envelope-from ) for ; Mon, 08 Aug 2022 17:49:02 +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 wFGUO20w8WJVZAEA9RJhRA (envelope-from ) for ; Mon, 08 Aug 2022 17:49:01 +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 B1A9134FE for ; Mon, 8 Aug 2022 17:49:01 +0200 (CEST) Received: from localhost ([::1]:50456 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oL500-000259-Sv for larch@yhetil.org; Mon, 08 Aug 2022 11:49:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41176) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oL4zA-0000MD-1U for guix-patches@gnu.org; Mon, 08 Aug 2022 11:48:08 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:52008) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oL4z9-0006n6-O3 for guix-patches@gnu.org; Mon, 08 Aug 2022 11:48:07 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oL4z9-00069F-Eh for guix-patches@gnu.org; Mon, 08 Aug 2022 11:48:07 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#56729] [RFC PATCH v2 21/29] gnu: Add sagemath-data-conway-polynomials. Resent-From: vicvbcun Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 08 Aug 2022 15:48: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: Ludovic =?UTF-8?Q?Court=C3=A8s?= , Andreas Enge Received: via spool by 56729-submit@debbugs.gnu.org id=B56729.165997365523264 (code B ref 56729); Mon, 08 Aug 2022 15:48:07 +0000 Received: (at 56729) by debbugs.gnu.org; 8 Aug 2022 15:47:35 +0000 Received: from localhost ([127.0.0.1]:41703 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oL4ya-00062Z-U4 for submit@debbugs.gnu.org; Mon, 08 Aug 2022 11:47:34 -0400 Received: from mo4-p05-ob.smtp.rzone.de ([85.215.255.135]:42623) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oL4yV-00061K-9H for 56729@debbugs.gnu.org; Mon, 08 Aug 2022 11:47:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1659973638; 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=zty5fSaPKQVA0SZcwwAqizEXwz0cXHay6cgYPWd6AUU=; b=DcV39qDjIFo/oWf5e9IjoLhiQKf8XzLKWFjAJLpjFl+b6GpJgG4Fz48y670jkI8/xs SWgVjob3m2X8FZkBF9clrZ258FKCJWmzbt5LalomJwfTIhAUlIDbD/OW3xyjcGExXRG4 jl4D+zZWhUXPFiirKCeHKRaixTTTBNX9WbC/hSlusmkj3hxMBrpjQekS2GoT1A42vJhy uJ4MLl5IIscEMOq8YhYeFhATVokXElh0gjK6iR6L7dqvpD+QBuICTrnEs7dWYFnxH/GJ NrNYVbejk3TChBrJN4Gm7y4Y8nMBk5XpmE0IFfw5LxNWsZEhkX0txWazTwHpkBj8uZ6B wjJA== 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 0cac6cy78FlIoRV (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Mon, 8 Aug 2022 17:47:18 +0200 (CEST) From: vicvbcun Date: Mon, 8 Aug 2022 17:45:56 +0200 Message-Id: <7314b2386dcd862d4405340ab7b3e27dac24df6b.1659973115.git.guix@ikherbers.com> 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=1659973741; 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=zty5fSaPKQVA0SZcwwAqizEXwz0cXHay6cgYPWd6AUU=; b=RkqPVenGCmoPZBPSih4ZK8VSeWiklRfpl6z+B+rH5VndNDVGY3p2HWtS2qEAxAwfq1nsTy w9cpa3jz4tW1+0JG+5khUbqDbEpd+TnlyZPOlLLv1oZTm8oa9Z8YoB8kXkCeXsYe5FqpAm gle/+6WF9SeNGdKLAZbZl6vLvINKg4OSnqnpqTrkGuJz8FIptDXHppDPyNdafgUA+dealo Eq04cdBjzlBzb9w/6dNoYnDs/gzHSa27ouBnWnzf3IWqNly30oG4CcA+Qz+3BDGxS0x44b DPWupHcTD+Q+ASWCogetpJlszN6vHgwI9uNLkJS9FuImHuft3PHME/hf5C2nRg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1659973741; a=rsa-sha256; cv=none; b=AH/GBbENDwts5QqY78ftq32X1oZ8kTTpuDfT4EqXtbio7MEI2YFb8XqzFyom+F8u+VySoc 60FiPvqmATU9DKAAaZQCzITnNEob8hbIt0Ar1JKLx3P4KUQEQ4ZrRvoBQd3ruICzVqVuwc 3NI0MIvIPaxLKVodUdmgxdAj9DQLmAQJAf8wYrYoALK8y7Y3rBut5PZE+9KbIZ4Fm/9Rt9 P82K1hiqQMh7/KYqGNJDr3LO5TS/Z1U3MaKdLWkoG36RlNv+aaFKXx1favgelVQdLgNyHM XxEin5FC9LzmYO0bk/vqKOYaU0ymsmoIFO8v5ts3gJ91HDkd4c4sjGrcO24Urg== 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=DcV39qDj; 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: 1.81 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=ikherbers.com header.s=strato-dkim-0002 header.b=DcV39qDj; 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: B1A9134FE X-Spam-Score: 1.81 X-Migadu-Scanner: scn0.migadu.com X-TUID: r88D3AJqnFDj * gnu/packages/sagemath.scm (sagemath-data-conway-polynomials): New variable. --- gnu/packages/sagemath.scm | 48 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/gnu/packages/sagemath.scm b/gnu/packages/sagemath.scm index 4ffc3fb9ba..2d82c9ae2e 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 cmake) #: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,6 +34,7 @@ (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) @@ -595,3 +597,49 @@ (define-public tachyon (synopsis "Multithreaded ray tracing software") (description synopsis) (license license:bsd-3))) + +(define-public sagemath-data-conway-polynomials + (let + ((install-py-origin + (origin + (method url-fetch) + (uri + "https://raw.githubusercontent.com/sagemath/sage/9.6/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 + "https://mirrors.mit.edu/sage/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-append #+(file-append bzip2 "/bin") + ":" + #+(file-append tar "/bin") + ":" + #+(file-append python "/bin"))) + (setenv "SAGE_SHARE" (string-append #$output "/share")) + (setenv "PYTHONPATH" (getcwd)) + + (invoke "tar" "-xvf" #$source) + (symlink (string-append "conway_polynomials-" #$version) "src") + (invoke "python3" (assoc-ref %build-inputs "install-py"))))) + (inputs `(("install-py" ,install-py-origin))) + (home-page + "https://www.math.rwth-aachen.de/~Frank.Luebeck/data/ConwayPol/index.html") + (synopsis "Tables of Conway polynomials over finite fields") + (description synopsis) + ;; no idea, Arch claims gpl, debian gpl2+?? + (license #f)))) -- 2.37.0