From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 4IgkNhcx8WJZHQEAbAwnHQ (envelope-from ) for ; Mon, 08 Aug 2022 17:51:51 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 2IMsNhcx8WKJBQAA9RJhRA (envelope-from ) for ; Mon, 08 Aug 2022 17:51:51 +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 A9AEAF09F for ; Mon, 8 Aug 2022 17:51:51 +0200 (CEST) Received: from localhost ([::1]:52664 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oL52k-0003hj-RL for larch@yhetil.org; Mon, 08 Aug 2022 11:51:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41226) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oL4zF-0000Ws-54 for guix-patches@gnu.org; Mon, 08 Aug 2022 11:48:13 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:52018) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oL4zE-0006on-Qq for guix-patches@gnu.org; Mon, 08 Aug 2022 11:48:12 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oL4zE-0006Ao-N3 for guix-patches@gnu.org; Mon, 08 Aug 2022 11:48:12 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#56729] [RFC PATCH v2 15/29] gnu: Add python-primecountpy. Resent-From: vicvbcun Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 08 Aug 2022 15:48:12 +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.165997367423460 (code B ref 56729); Mon, 08 Aug 2022 15:48:12 +0000 Received: (at 56729) by debbugs.gnu.org; 8 Aug 2022 15:47:54 +0000 Received: from localhost ([127.0.0.1]:41732 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oL4yv-00066C-Ks for submit@debbugs.gnu.org; Mon, 08 Aug 2022 11:47:54 -0400 Received: from mo4-p05-ob.smtp.rzone.de ([81.169.146.181]:41009) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oL4yZ-00062E-Qs 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=rAcpcPvRRtIv75p8JPVnMk1Udw/2jlU/QRYL6eAcxlU=; b=m7sRsmepPaE9OGdILLioH28NLs5oeDJt+s7zkqaGJCfUK9Qp36qIOio9GWfwVGnpcD Q4whR+9x8+fLl4hnexXm8DeIoFXWCm7uqYjHi5xL/E126n/JFJ28UbBk1dIga0H6xa/H 1xbwiVBJmcD69DpD8mvuDhdaFugSuBf1Mk9CVUJyJlMhHTPiCOXxJB+yGJRO8vAfQYwa jhi33AAK2NVXXnTeZocMei6NuiJF6jX/Ng6x6xa6rS0GhoddHYl7/+mDdvEHgIW82TPn EUYCBR+VlVaw5zJjMykZsEgRzYaGHp8+zfEUzCKGvZWybdiwtQA09ei57GI5VOMXS+uF dRwA== 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 0cac6cy78FlIoRR (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:50 +0200 Message-Id: X-Mailer: git-send-email 2.37.0 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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=1659973911; 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=rAcpcPvRRtIv75p8JPVnMk1Udw/2jlU/QRYL6eAcxlU=; b=B5tnhijX6IO/AbmubYuEILxxalNwWZAoTTVy3LF+S1qnS4Hg9jhvHBFvp9Ju+C2thaut1f nfO7Nhc8XtObqCek8lxDB7fDqJoK4exL9xfKqSAZDI0zkGdZNRExikYlWucZfj1VvFju0Y +IpResnGRNYWo5oIKH5aTSjPbFFm1rg2pRBiREvXyqnWdpfvp8vQJempzSXR27E9Q/XT10 /5EugMv3Cd8EOYOCm3qHzdYSfKd0v/R3MbWXFdIVi2ClXUBHU3ahr0CiC+lVy7cXQ60gsJ r5EP3sbxEBO1ZS1kw1hcHqrLB5RqkvOATn7cdOAR4t93rJF9oa3UsuQB37wSvg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1659973911; a=rsa-sha256; cv=none; b=b72wr8OUauTN8rW079VaP7bJbkqr49nEpfsm/LUZ1nWa5Da33C/5PAmNGGzG56bLyatScu rJWTVJnUMTwasCbBmeizP3X89jQfdabL7+ZFW+ve2lQsMwN4whr/fJ0mHKIf5AbexhPFTK rD6ecEWPKy5phvrwZvtq9w0HoQdGaY9qHjr5X2Ekv6V9xvd2Fv9VNTXAHrz8+BvkxUkPT7 ydHyvFiAGTfzvujRenOwpAxuKV8qJTVzoMNuD9eUi/+SZSsMjkotT865Eiaty81QbHwWpj ehPOwu7Slmb9Vc6B3wnQzCZhx3qnIcS+yYJkiwqPNScBMrujCjJydhxyIU0M7A== 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=m7sRsmep; 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.01 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=ikherbers.com header.s=strato-dkim-0002 header.b=m7sRsmep; 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: A9AEAF09F X-Spam-Score: 2.01 X-Migadu-Scanner: scn1.migadu.com X-TUID: VzFix1rY6vdL * gnu/packages/sagemath.scm (python-primecountpy): New variable. --- gnu/packages/sagemath.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/gnu/packages/sagemath.scm b/gnu/packages/sagemath.scm index 20cc1f3589..d8b70e6f23 100644 --- a/gnu/packages/sagemath.scm +++ b/gnu/packages/sagemath.scm @@ -26,6 +26,7 @@ (define-module (gnu packages sagemath) #:use-module (guix build-system gnu) #:use-module (guix build-system python) #:use-module (guix download) + #:use-module (guix gexp) #:use-module (guix git-download) #:use-module (guix packages) #:use-module (guix utils) @@ -423,3 +424,26 @@ (define-public primecount of primes ≤ x (maximum 10^31) using highly optimized implementations of the combinatorial prime counting algorithms.") (license license:bsd-2))) + +(define-public python-primecountpy + (package + (name "python-primecountpy") + (version "0.1.0") + (source (origin + (method url-fetch) + (uri (pypi-uri "primecountpy" version)) + (sha256 + (base32 + "0xh6zx5zw5scy7jygqirks9y6z4zyfm0zjfp8nd6dw0m471przkq")))) + (build-system python-build-system) + (arguments (list #:phases #~(modify-phases %standard-phases + (add-before 'build 'set-cflags + (lambda _ + (setenv "CFLAGS" "-fopenmp") + (setenv "CXXFLAGS" "-fopenmp")))))) + (inputs (list pari-gp primecount)) + (propagated-inputs (list python-cysignals python-cython)) + (home-page "https://github.com/dimpase/primecountpy") + (synopsis "Cython interface for C++ primecount library") + (description "Cython interface for C++ primecount library") + (license license:gpl3))) -- 2.37.0