From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id CD+BLTEx8WJTLgAAbAwnHQ (envelope-from ) for ; Mon, 08 Aug 2022 17:52:17 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 0PVrLTEx8WLR9QAAauVa8A (envelope-from ) for ; Mon, 08 Aug 2022 17:52:17 +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 7F5EDEF35 for ; Mon, 8 Aug 2022 17:52:16 +0200 (CEST) Received: from localhost ([::1]:53820 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oL539-0004UL-Gd for larch@yhetil.org; Mon, 08 Aug 2022 11:52:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41228) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oL4zF-0000Yl-Mq for guix-patches@gnu.org; Mon, 08 Aug 2022 11:48:13 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:52019) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oL4zF-0006oy-Dn for guix-patches@gnu.org; Mon, 08 Aug 2022 11:48:13 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oL4zF-0006Ax-80 for guix-patches@gnu.org; Mon, 08 Aug 2022 11:48:13 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#56729] [RFC PATCH v2 22/29] gnu: Add sagemath-data-elliptic-curves. Resent-From: vicvbcun Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 08 Aug 2022 15:48:13 +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.165997368223519 (code B ref 56729); Mon, 08 Aug 2022 15:48:13 +0000 Received: (at 56729) by debbugs.gnu.org; 8 Aug 2022 15:48:02 +0000 Received: from localhost ([127.0.0.1]:41734 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oL4yw-00066L-3A for submit@debbugs.gnu.org; Mon, 08 Aug 2022 11:48:01 -0400 Received: from mo4-p05-ob.smtp.rzone.de ([85.215.255.133]:38415) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oL4yZ-00062H-US for 56729@debbugs.gnu.org; Mon, 08 Aug 2022 11:47:33 -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=K2jRC32d8gRS0gb6P++EfNZdIi5V4modMi0/tKhKdEQ=; b=X7d5BScowOck0gTUiT+Rz/H2C03suvBKVHoT1/x8HPoNkdajxNWBeFoNqbNA5YHuTu ZJfpI4oGV8+SERDolCNLrC3Jh8c78zZQBtR98ekooix6D8fltKYuqAehG6DygRsQHnzb XUDD0W8p8NzVWyZ8uKUCa914aegFve8mwgctovmKrRyapjn8LybrfWNU9RnA7Ywq/Uxi 2BhI2NrMBWt4pIehvHSu53KMnc1VI1PIDJEUTXD5BSK8ek8Bcnbohbthvsrc/sLkwoXK gIqC0Cu9Hspc74FWMRDMO2ZbVFCFmi/IPSEpHAtoA8m9d3MqIK9WhEUPa4jNVR6TJheZ M/uQ== 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 0cac6cy78FlIoRU (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:57 +0200 Message-Id: <3c321223f64adb272aa9b446180236e24ee23673.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=1659973936; 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=K2jRC32d8gRS0gb6P++EfNZdIi5V4modMi0/tKhKdEQ=; b=iR0fYkDHn08nFl1PP1/QwkOZ7cy72q4j+CYOkUE1/6YY3tjZDKrZa7Q5Tv899eRCtO35hq 3Vu6+83fs4eoZbAXXRZattyMO6AlZdZ73mc5YJOsFthzzU/9h8W8LHz6GUhN5AuwRcIc4J /IMn5wkHStEvVAyflMpyKdl0NaVxI/R8/8x0kSvxD4IyEo8NWZ1HkP8F1i+0OoSIcHTPEH MqRVal4ra2veNncDGAfVa6mdTCOQjJr+VOveKQiA9MkOCW+K5NOxlxPdwoDWjQrw3F2xo+ tWM86HIKq6SIZ96Vg899nRWVnZcbqLjvtV9DZa8T4NsEe9UraD29GgI/Wpa6AQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1659973936; a=rsa-sha256; cv=none; b=s80xhmP7hw9gXnD/hZIrrs17zDS6pjqcwuQY7bP4TPqh7BqqpMK5vOypJXVG4na93n1/O/ 31576zek+2ykCKoJ/1V3UvWdVowl6cdrigRUltjyMfZ54qgxo+MHoYwpzdbTAoe0LChAsq K+f4GzfjJ1Ydrmrs89yrxYL+fU99/9TtX/mgKxj26oiIfq7zEMrTzQwYhYXx/gZOq6gIsF cExHR8xf21gwA34wQDmzQVRzR8mNXrCBB3Un0mFKvLMiLKZQA8xrtc7WbZd8XAcEp+yIiR f7pF+Vqq07iFRAwKMVoB1tsoqipyYZAW1NWfIuZ9zt9RHzk/YVRdR6pwrnMZpw== 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=X7d5BSco; 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=X7d5BSco; 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: 7F5EDEF35 X-Spam-Score: 1.81 X-Migadu-Scanner: scn0.migadu.com X-TUID: ND0niLdmNFH1 * gnu/packages/sagemath.scm (sagemath-data-elliptic-curves): New variable. --- gnu/packages/sagemath.scm | 45 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/gnu/packages/sagemath.scm b/gnu/packages/sagemath.scm index 2d82c9ae2e..d4450d5d46 100644 --- a/gnu/packages/sagemath.scm +++ b/gnu/packages/sagemath.scm @@ -643,3 +643,48 @@ (define-public sagemath-data-conway-polynomials (description synopsis) ;; no idea, Arch claims gpl, debian gpl2+?? (license #f)))) + +(define-public sagemath-data-elliptic-curves + (let + ((install-py-origin + (origin + (method url-fetch) + (uri + "https://raw.githubusercontent.com/sagemath/sage/9.6/build/pkgs/elliptic_curves/spkg-install.py") + (sha256 (base32 + "116g684i6mvs11fvb6fzfsr4fn903axn31vigdyb8bgpf8l4hvc5"))))) + (package + (name "sagemath-data-elliptic-curves") + (version "0.8.1") + (source (origin + (method url-fetch) + (uri (string-append + "https://mirrors.mit.edu/sage/spkg/upstream/elliptic_curves/elliptic_curves-" + version ".tar.bz2")) + (sha256 + (base32 + "0l7xh4abw5sb4d37r0ylr3vwb88fpx2zrvfm5ql0c7yrv5q59fjz")))) + (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 "elliptic_curves-" #$version) "src") + (invoke "python3" (assoc-ref %build-inputs "install-py"))))) + (inputs `(("install-py" ,install-py-origin))) + (home-page "https://johncremona.github.io/ecdata/") + (synopsis "Databases of elliptic curves") + (description synopsis) + ;; no idea, Arch claims gpl, alledgedly is part of + ;; https://github.com/JohnCremona/ecdata Artistic 2.0 + (license #f)))) -- 2.37.0