From patchwork Wed Mar 20 22:27:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sharlatan Hellseher X-Patchwork-Id: 62060 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 CA9B427BBF3; Wed, 20 Mar 2024 22:32:14 +0000 (GMT) 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=ham 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 0B44927BBEA for ; Wed, 20 Mar 2024 22:32:13 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rn4S6-0000co-Ne; Wed, 20 Mar 2024 18:30:30 -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 1rn4S5-0000b8-BC for guix-patches@gnu.org; Wed, 20 Mar 2024 18:30:29 -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 1rn4S5-0005i3-1v; Wed, 20 Mar 2024 18:30:29 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rn4Se-0005bV-Ee; Wed, 20 Mar 2024 18:31:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#69924] [PATCH 03/49] gnu: python-blosc: Move to python-compression. 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: Wed, 20 Mar 2024 22:31:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69924 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 69924@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 69924-submit@debbugs.gnu.org id=B69924.171097383321051 (code B ref 69924); Wed, 20 Mar 2024 22:31:04 +0000 Received: (at 69924) by debbugs.gnu.org; 20 Mar 2024 22:30:33 +0000 Received: from localhost ([127.0.0.1]:36300 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rn4S9-0005TG-2P for submit@debbugs.gnu.org; Wed, 20 Mar 2024 18:30:33 -0400 Received: from mail-wm1-f42.google.com ([209.85.128.42]:46354) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rn4S4-0005S1-VA for 69924@debbugs.gnu.org; Wed, 20 Mar 2024 18:30:30 -0400 Received: by mail-wm1-f42.google.com with SMTP id 5b1f17b1804b1-4140aadfe2eso2274725e9.1 for <69924@debbugs.gnu.org>; Wed, 20 Mar 2024 15:29:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710973724; x=1711578524; 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=M4H19ZkF3tM8tCinRVC32S3nYPBp5aqokk1jXpOXvTE=; b=WQ3GFCw2pSCWpApTRm6PkKmazaD4KPttORR4DPMoP/0h0+3n7AhBJC2zyfJaJ0xva0 t6TyJMJMVnKruNwBrsnELwGXSREDx1ABM2/MvlIvBVcJvyZQqIJiE4eH0A4DJl99fIBx G7gMqY5fyW7V0rmPrD+QDqtUk3NfrFhrCh9UhE3HkJKQiwiKMUH7iBmKBCLI8V7PJ1Mp ev+F8wqsdC0W8Id2a75wSfkeLxH8//WH5ZR8lkQYCIHp5fo5pRNO1YoeEySnYFZZp08a zREWOr7iSwrYwRPCMRlqD3v3vv4sQijnHWKGPjgviFCa86BQ+wlcBVDxDKqrJL2/VVp7 5v0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710973724; x=1711578524; 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=M4H19ZkF3tM8tCinRVC32S3nYPBp5aqokk1jXpOXvTE=; b=jJD+BbMgRqwlr/Bp7W23pgV6PXBHwOkynIh+GFFPVaPAMswwVaN44YLWI1gls4YEP0 TSKJ0HOm2NxthTQteb3oif0nCTJMMc47QcP8WUe8NMFWquNUHQAQBg/hd07gVuXlDpfy cG03DiTf3zbxK0mfD5ABxTqBos1hluCsed89xbRxk19X/LLUIMdbDWljWObG9abpG09S xOfIGQRpiymnXxNlfxxBvn1ow2QokZlPh7vIrsfTCER+p/G5KEt00nb9MKdfL78eVoBc Vg5g+n82Umd7h+W5Rjv+CVLUA3irzAaMag9sX1xB5SKS0incpFwKah0Kx1HR8sUy4TDa mV1Q== X-Gm-Message-State: AOJu0YxuCuJ6X9y7VZdK4rxah55o1rfR2vL1+h6nhCdoa1dQWCD72A4c f1zn3QkiiMMaqcJCjmS9axCNQbtgMTvub1oA/01M4B3fPg1euaagCtWo+wNy5Dc= X-Google-Smtp-Source: AGHT+IGiTyM+PZ0d7tJvIF071KDwyUgxfmIl18AKTAxuZZi8pHt/Q8mZ9aiAPUxciVnrh0H7ujsxIw== X-Received: by 2002:a05:6000:18ce:b0:341:715e:36d6 with SMTP id w14-20020a05600018ce00b00341715e36d6mr7494665wrq.34.1710973723663; Wed, 20 Mar 2024 15:28:43 -0700 (PDT) Received: from localhost.localdomain (cpc100856-bagu15-2-0-cust368.1-3.cable.virginm.net. [82.25.93.113]) by smtp.gmail.com with ESMTPSA id fm22-20020a05600c0c1600b004147266a37dsm543921wmb.30.2024.03.20.15.28.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Mar 2024 15:28:43 -0700 (PDT) From: Sharlatan Hellseher Date: Wed, 20 Mar 2024 22:27:33 +0000 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-xyz.scm (python-blosc): Move from here ... * gnu/packages/python-compression.scm: ... to here. Change-Id: Ieed1b399602d0ba64b065d1c03ef0855ac52f71e --- gnu/packages/python-compression.scm | 47 ++++++++++++++++++++++++++++- gnu/packages/python-xyz.scm | 44 --------------------------- 2 files changed, 46 insertions(+), 45 deletions(-) diff --git a/gnu/packages/python-compression.scm b/gnu/packages/python-compression.scm index 691fbd3065..ef289bc4d1 100644 --- a/gnu/packages/python-compression.scm +++ b/gnu/packages/python-compression.scm @@ -3,7 +3,7 @@ ;;; Copyright © 2017, 2019, 2021, 2022 Ricardo Wurmus ;;; Copyright © 2017 Nikita ;;; Copyright © 2017 Julien Lepiller -;;; Copyright © 2018-2020, 2022 Efraim Flashner +;;; Copyright © 2018-2020, 2022, 2023 Efraim Flashner ;;; Copyright © 2020 Nicolas Goaziou ;;; Copyright © 2020, 2022, 2023 Marius Bakke ;;; Copyright © 2021 Brendan Tildesley @@ -38,6 +38,7 @@ (define-module (gnu packages python-compression) #:use-module (gnu packages libffi) #:use-module (gnu packages compression) #:use-module (gnu packages crates-io) + #:use-module (gnu packages cmake) #:use-module (gnu packages check) #:use-module (gnu packages maths) #:use-module (gnu packages pkg-config) @@ -49,6 +50,50 @@ (define-module (gnu packages python-compression) #:use-module (gnu packages rust-apps) #:use-module (gnu packages sphinx)) +(define-public python-blosc + (package + (name "python-blosc") + (version "1.11.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "blosc" version)) + (sha256 + (base32 + "0xmjs28sgpnb940zrhw010dq2m9d8a5h4fgnjyk6645fgfr1j8f2")) + (snippet + #~(begin (use-modules (guix build utils)) + (delete-file-recursively "blosc/c-blosc"))))) + (build-system python-build-system) + (arguments + (list #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'find-blosc + (lambda* (#:key inputs #:allow-other-keys) + (setenv "USE_SYSTEM_BLOSC" "1") + (setenv "Blosc_ROOT" #$(this-package-input "c-blosc")))) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "python" "-m" "blosc.test"))))))) + (propagated-inputs + (list python-scikit-build python-numpy)) + (inputs (list c-blosc)) + (native-inputs (list cmake-minimal)) + (home-page "https://github.com/blosc/python-blosc") + (synopsis "Python wrapper for the Blosc data compressor library") + (description "Blosc is a high performance compressor optimized for binary +data. It has been designed to transmit data to the processor cache faster +than the traditional, non-compressed, direct memory fetch approach via a +@code{memcpy()} system call. + +Blosc works well for compressing numerical arrays that contains data with +relatively low entropy, like sparse data, time series, grids with +regular-spaced values, etc. + +This Python package wraps the Blosc library.") + (license license:bsd-3))) + (define-public python-multivolumefile (package (name "python-multivolumefile") diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 7ed8c945be..7eacce5caf 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -27394,50 +27394,6 @@ (define-public python-locket they use the same path.") (license license:bsd-2))) -(define-public python-blosc - (package - (name "python-blosc") - (version "1.11.1") - (source - (origin - (method url-fetch) - (uri (pypi-uri "blosc" version)) - (sha256 - (base32 - "0xmjs28sgpnb940zrhw010dq2m9d8a5h4fgnjyk6645fgfr1j8f2")) - (snippet - #~(begin (use-modules (guix build utils)) - (delete-file-recursively "blosc/c-blosc"))))) - (build-system python-build-system) - (arguments - (list #:phases - #~(modify-phases %standard-phases - (add-after 'unpack 'find-blosc - (lambda* (#:key inputs #:allow-other-keys) - (setenv "USE_SYSTEM_BLOSC" "1") - (setenv "Blosc_ROOT" #$(this-package-input "c-blosc")))) - (replace 'check - (lambda* (#:key tests? #:allow-other-keys) - (when tests? - (invoke "python" "-m" "blosc.test"))))))) - (propagated-inputs - (list python-scikit-build python-numpy)) - (inputs (list c-blosc)) - (native-inputs (list cmake-minimal)) - (home-page "https://github.com/blosc/python-blosc") - (synopsis "Python wrapper for the Blosc data compressor library") - (description "Blosc is a high performance compressor optimized for binary -data. It has been designed to transmit data to the processor cache faster -than the traditional, non-compressed, direct memory fetch approach via a -@code{memcpy()} system call. - -Blosc works well for compressing numerical arrays that contains data with -relatively low entropy, like sparse data, time series, grids with -regular-spaced values, etc. - -This Python package wraps the Blosc library.") - (license license:bsd-3))) - (define-public python-partd (package (name "python-partd")