From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id gFUnJn/JdWauGwAAe85BDQ:P1 (envelope-from ) for ; Fri, 21 Jun 2024 18:42:07 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id gFUnJn/JdWauGwAAe85BDQ (envelope-from ) for ; Fri, 21 Jun 2024 20:42:07 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=gMekXP2O; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1718995327; 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=Fxs6B4S8XWp05FsKbWVSn0xohUQIQh1nI87Oq5qyIH8=; b=AJeHIXAQBCOnY9sUTEvToWA8WLJ9gogAmFMmwJU9eL9pXLx3sxsAB1OiKlckdMu6nuEkV0 DPp2Sqz/sPCXhOD2c533HvU6K4wYriw213KM2/NeXPEf3EKvbT4oTb/bTZ4zQzDP/r1gGx JZkQXPCYjmToPza7X7821gUf+bWQmL+eb/nOz696xNWpVawVTGMpRUqGS8RJVUlG2BJazk BU6zBpNPm+NdcTPkXUCIImlfZYaTH5vtG5qN5ITwmSi0Fnq7A8WEmHa3D1tVhPws46/T/9 +H3W3PXurA+xtNqDUYh5UkuqWZx01F6wfgGXVFSUDGgg5htvwV/Z7YVe3bSJ6g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1718995327; a=rsa-sha256; cv=none; b=skQzX4PKuCfppgMcTUqWbrpmS4by+Qm0zk8XkO/1kSMcbNe0SnQyGCAM6ULFzdLF6lm4u5 3bJdvpkNy/Hnd/o8CnvFWrlzC2XLonRNKnboTMS5OjrzD4KDZ4IcSB/hUjha02ha9gT8M5 tHPv+3caR3N2qGF28w+49y8zEV1qv9G64YQqyYQpTymCxDW+89pweScaGPedavXXXuqzvj rGNogvT5LJuLMUS0svsyJJ9fDF39LyCf7wccDcXm0Xn3rB0hJ93TM5lzIGh8TI6ReytDQz Hmu7IdQkoURr0u2BHk0vfgpq45xO9YGSWtXK63iWLTZZTISS51kp0dA/6YPCmw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=gMekXP2O; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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" 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 56AEF1CEF7 for ; Fri, 21 Jun 2024 20:42:07 +0200 (CEST) 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 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: 56AEF1CEF7 X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -3.76 X-Spam-Score: -3.76 X-TUID: 122e11h90l0n * 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") -- 2.41.0