From patchwork Fri Jun 21 18:38:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sharlatan Hellseher X-Patchwork-Id: 65538 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 6383B27BBE2; Fri, 21 Jun 2024 19:42:09 +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_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, SPF_HELO_PASS 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 2BE7127BBEA for ; Fri, 21 Jun 2024 19:42:07 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sKjCE-0008RA-M9; Fri, 21 Jun 2024 14:41:14 -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 1sKjCC-0008NS-4F for guix-patches@gnu.org; Fri, 21 Jun 2024 14:41:12 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sKjCB-0003Qj-St; Fri, 21 Jun 2024 14:41:11 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sKjCB-0004TP-06; Fri, 21 Jun 2024 14:41:11 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#71702] [PATCH 23/30] gnu: Add python-fast-histogram. Resent-From: Sharlatan Hellseher Original-Sender: "Debbugs-submit" Resent-CC: lars@6xq.net, marius@gnu.org, me@bonfacemunyoki.com, sharlatanus@gmail.com, tanguy@bioneland.org, jgart@dismail.de, guix-patches@gnu.org Resent-Date: Fri, 21 Jun 2024 18:41:10 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71702 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 71702@debbugs.gnu.org Cc: Sharlatan Hellseher , Lars-Dominik Braun , Marius Bakke , Munyoki Kilyungi , Sharlatan Hellseher , Tanguy Le Carrour , jgart X-Debbugs-Original-Xcc: Lars-Dominik Braun , Marius Bakke , Munyoki Kilyungi , Sharlatan Hellseher , Tanguy Le Carrour , jgart Received: via spool by 71702-submit@debbugs.gnu.org id=B71702.171899524816892 (code B ref 71702); Fri, 21 Jun 2024 18:41:10 +0000 Received: (at 71702) by debbugs.gnu.org; 21 Jun 2024 18:40:48 +0000 Received: from localhost ([127.0.0.1]:43562 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sKjBo-0004OM-9P for submit@debbugs.gnu.org; Fri, 21 Jun 2024 14:40:48 -0400 Received: from mail-wm1-f42.google.com ([209.85.128.42]:57588) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sKjBV-0004LJ-Ex for 71702@debbugs.gnu.org; Fri, 21 Jun 2024 14:40:30 -0400 Received: by mail-wm1-f42.google.com with SMTP id 5b1f17b1804b1-42165f6645fso19976715e9.2 for <71702@debbugs.gnu.org>; Fri, 21 Jun 2024 11:40:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718995164; x=1719599964; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Fxs6B4S8XWp05FsKbWVSn0xohUQIQh1nI87Oq5qyIH8=; b=gMekXP2OGHUCPn5wass5YTtjfmMb+hpIBdqZvjf85OhJ605zotNTLWOE2/kazkp59F GVTKDrx8II3+tgKuQ9nF7Mq0HqdFynT6KAsrKnozNxRFpgFdjyTf804Ly4gT1bgLgMJo UudqrZVRHZc4pAqIomM7r7n1wToQQU34X0yR/kjN8jK1bhn7jY1r4/aUmaCk5p0uQ6Cr l1I0nk6xz4BSqN9sAp144iEEXvYsYEkazu050eiSU0k0qv6IgZV7UZoXMjuuZQUNOQhB GP9iDnzDXq5KZN/ks3GlyeO6TxvTobO2ZbhtKcbBdd1fipt0T39n5W6/LXka68FToJov 6ADg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718995164; x=1719599964; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Fxs6B4S8XWp05FsKbWVSn0xohUQIQh1nI87Oq5qyIH8=; b=lefTQMlbon/2pyuvsK3A3uf9Klw2hsIfUAwqsb6NemwXWbQBNQZV888arcadAAsQm2 HL0Fc5+R5SNXIgCVbxUL2WHoHn7I8QekT+B6JayRrDHqn87qCDikdL8Y+Nl/YvdeN/JN cBA48YSUzPpKWEoz2i8GBYUMUzFIP26qwVQkaTVctUlQmfZ6hdCl1vhTSpZdCTm6DyYB e1+AAbQ0zDJ4/1d4X1/IqYb6W4HrGEUN1995WZ5V4CoxujwxPgi6cmCV1iimdCogpmCr U8WYBL7JlZKDhcheYEtZhx+h1KJSUGWEXmh3F+t6m8Csb85X5B1E8Ig2UuqUuN0kGaPI KSrA== X-Gm-Message-State: AOJu0Yzv4TWLDT3+snu4ybkWDavNNMlQnfD0ZSDkuGhhFd+3IlIWAiyX v30ODw81iNlrNRatSeyAt0310+GOyDvJkPbEvvQdvAHhdblm/440oxSo0+SK X-Google-Smtp-Source: AGHT+IHbqVccUlLwjyDdQsCB48Awoiu78Q2w/OH4TYJZUio6VyF+rBtoWwxq9nbw7mRYQxYPPFFZyw== X-Received: by 2002:a05:600c:4447:b0:422:7996:3f3f with SMTP id 5b1f17b1804b1-42475174910mr76269685e9.11.1718995164423; Fri, 21 Jun 2024 11:39:24 -0700 (PDT) Received: from guxtil.incerto.xyz (bagu-15-b2-v4wan-170076-cust245.vm21.cable.virginm.net. [77.98.0.246]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4247d0b63d4sm76298985e9.3.2024.06.21.11.39.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Jun 2024 11:39:24 -0700 (PDT) From: Sharlatan Hellseher Date: Fri, 21 Jun 2024 19:38:45 +0100 Message-ID: X-Mailer: git-send-email 2.41.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-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/python-science.scm (python-fast-histogram): New variable. Change-Id: Ibecdd87db9c132052a8eca76c01108c4f6e624c4 --- gnu/packages/python-science.scm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm index 401beecbcd..931f3c57d3 100644 --- a/gnu/packages/python-science.scm +++ b/gnu/packages/python-science.scm @@ -1519,6 +1519,38 @@ (define-public python-baycomp higher scores.") (license license:expat))) +(define-public python-fast-histogram + (package + (name "python-fast-histogram") + (version "0.14") + (source + (origin + (method url-fetch) + (uri (pypi-uri "fast_histogram" version)) + (sha256 + (base32 "1sk9xa85cgm4sylzblwv3qr2dmm0ic06zkwxqa2xlazjiawp629r")))) + (build-system pyproject-build-system) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + (add-before 'check 'build-extensions + (lambda _ + (invoke "python" "setup.py" "build_ext" "--inplace")))))) + (propagated-inputs (list python-numpy)) + (native-inputs (list python-hypothesis python-pytest)) + (home-page "https://github.com/astrofrog/fast-histogram") + (synopsis "Fast simple 1D and 2D histograms") + (description + "The fast-histogram mini-package aims to provide simple and fast +histogram functions for regular bins that don't compromise on performance. It +doesn't do anything complicated - it just implements a simple histogram +algorithm in C and keeps it simple. The aim is to have functions that are fast +but also robust and reliable. The result is a 1D histogram function here that +is 7-15x faster than @code{numpy.histogram}, and a 2D histogram function that +is 20-25x faster than @code{numpy.histogram2d}.") + (license license:bsd-3))) + (define-public python-fastcluster (package (name "python-fastcluster")