From patchwork Sat Jan 6 17:21:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Troy Figiel X-Patchwork-Id: 58435 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 BC56E27BBEA; Sat, 6 Jan 2024 17:25:17 +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_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED 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 BA5DF27BBE9 for ; Sat, 6 Jan 2024 17:25:16 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rMAPq-0007ep-H5; Sat, 06 Jan 2024 12:24:58 -0500 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 1rMAPp-0007ee-BU for guix-patches@gnu.org; Sat, 06 Jan 2024 12:24:57 -0500 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 1rMAPo-0004Ic-Iw for guix-patches@gnu.org; Sat, 06 Jan 2024 12:24:57 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rMAPt-0005kE-IN for guix-patches@gnu.org; Sat, 06 Jan 2024 12:25:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#68147] [PATCH v2] gnu: Add python-python-snappy. References: <87mstr3gac.fsf@troyfigiel.com> In-Reply-To: <87mstr3gac.fsf@troyfigiel.com> Resent-From: Troy Figiel Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 06 Jan 2024 17:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68147 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 68147@debbugs.gnu.org Received: via spool by 68147-submit@debbugs.gnu.org id=B68147.170456185322017 (code B ref 68147); Sat, 06 Jan 2024 17:25:01 +0000 Received: (at 68147) by debbugs.gnu.org; 6 Jan 2024 17:24:13 +0000 Received: from localhost ([127.0.0.1]:60247 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rMAP6-0005j3-Lb for submit@debbugs.gnu.org; Sat, 06 Jan 2024 12:24:13 -0500 Received: from mout-p-101.mailbox.org ([2001:67c:2050:0:465::101]:58834) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rMAP3-0005io-UG for 68147@debbugs.gnu.org; Sat, 06 Jan 2024 12:24:10 -0500 Received: from smtp202.mailbox.org (smtp202.mailbox.org [IPv6:2001:67c:2050:b231:465::202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-101.mailbox.org (Postfix) with ESMTPS id 4T6nHJ1B3Fz9stH for <68147@debbugs.gnu.org>; Sat, 6 Jan 2024 18:23:56 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=troyfigiel.com; s=MBO0001; t=1704561836; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=T32oWqmRk+xMQ5nHk8uFwPa6ey/us7m+nQTswNzI6X4=; b=QVDZBi4TOqADlAnB6kwSANetS+hQTRUlrjx3RFa51jOxmcR246h/13l1aqkawjLVPywgeD V8IvS8QFDjc4opOrvGqIEzSJULRx0J14XX/AQGicipbQy4Ax3SOr4fGyGdBFyU9QHsMi/D Zh/NVpoNVinbE5/b6mVGIffA0tS6aK2WEteTU32J/z+/tHBMkzqGY6cJvvhXOs0KnZeldn 9JtvwRh2Dj0iAk4fcdOMfYJqPzDllMgL5UeE3pXD/5cFi0zEdkz2jcYrRPDqrvw7/X+Sva RP4hwYLDeHTKT+zWT76BDSkhMW2heALqBq0klYqYoHyVJ2/AnSoxRxRcRX7xHg== From: Troy Figiel Date: Sat, 6 Jan 2024 18:21:53 +0100 Message-ID: <87bk9yxtn8.fsf@troyfigiel.com> MIME-Version: 1.0 X-Rspamd-Queue-Id: 4T6nHJ1B3Fz9stH 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-compression.scm (python-python-snappy): New variable. --- gnu/packages/python-compression.scm | 34 +++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) base-commit: ee0cf3b9ff4cd5a9d3637d09677195ea9ee1a8c0 diff --git a/gnu/packages/python-compression.scm b/gnu/packages/python-compression.scm index bc96bc05d3..6f249dd3af 100644 --- a/gnu/packages/python-compression.scm +++ b/gnu/packages/python-compression.scm @@ -7,6 +7,7 @@ ;;; Copyright © 2020 Nicolas Goaziou ;;; Copyright © 2020, 2022, 2023 Marius Bakke ;;; Copyright © 2021 Brendan Tildesley +;;; Copyright © 2023 Troy Figiel ;;; ;;; This file is part of GNU Guix. ;;; @@ -416,6 +417,39 @@ (define-public python-lzstring (description "Lz-string is a string compressor library for Python.") (license license:expat))) +(define-public python-python-snappy + (package + ;; PyPI contains both `snappy' and `python-snappy' as completely distinct + ;; packages. To avoid a name collision in Guix, we use the variable name + ;; `python-python-snappy' for the package called `python-snappy' on PyPI. + (name "python-python-snappy") + (version "0.6.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "python-snappy" version)) + (sha256 + (base32 "0amv12w0ybn6n1lk36x70a3l8bdjv4mn7iflb59wqsi00smhg8dn")))) + (build-system python-build-system) + (arguments + '(#:phases (modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "pytest" "-vv" "-k" + ;; CFFI is only supported for PyPy builds. + (string-append "not test_snappy_cffi_enum " + "and not test_snappy_all_cffi")))))))) + (inputs (list snappy)) + (native-inputs (list python-pytest)) + (home-page "https://github.com/andrix/python-snappy") + (synopsis "Python bindings for the Snappy compression library") + (description + "@code{python-python-snappy} provides bindings to the Snappy library and +can be used to compress and decompress files and streams. It can also be used +directly from the command line.") + (license license:bsd-3))) + (define-public bitshuffle (package (name "bitshuffle")