From patchwork Mon Aug 8 15:45:50 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: vicvbcun X-Patchwork-Id: 41399 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id DC2F827BBE9; Mon, 8 Aug 2022 16:51:55 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id E999A27BBEB for ; Mon, 8 Aug 2022 16:51:53 +0100 (BST) Received: from localhost ([::1]:52664 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oL52n-0003hj-4W for patchwork@mira.cbaines.net; Mon, 08 Aug 2022 11:51:53 -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== Authentication-Results: strato.com; dkim=none 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 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * 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)))