From patchwork Sat Dec 30 13:46:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Troy Figiel X-Patchwork-Id: 58211 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 418DA27BBEA; Sat, 30 Dec 2023 14:41:19 +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 026EE27BBE2 for ; Sat, 30 Dec 2023 14:41:18 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rJaWO-0006yX-W7; Sat, 30 Dec 2023 09:41:05 -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 1rJaWM-0006yG-NQ for guix-patches@gnu.org; Sat, 30 Dec 2023 09:41:02 -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 1rJaWM-0001Vn-F4 for guix-patches@gnu.org; Sat, 30 Dec 2023 09:41:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rJaWM-0003D9-L6 for guix-patches@gnu.org; Sat, 30 Dec 2023 09:41:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#68147] [PATCH] gnu: Add python-snappy. Resent-From: Troy Figiel Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 30 Dec 2023 14:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 68147 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 68147@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.170394724212299 (code B ref -1); Sat, 30 Dec 2023 14:41:02 +0000 Received: (at submit) by debbugs.gnu.org; 30 Dec 2023 14:40:42 +0000 Received: from localhost ([127.0.0.1]:43320 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rJaVy-0003CF-Sa for submit@debbugs.gnu.org; Sat, 30 Dec 2023 09:40:42 -0500 Received: from lists.gnu.org ([2001:470:142::17]:34782) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rJaVt-0003Bw-GZ for submit@debbugs.gnu.org; Sat, 30 Dec 2023 09:40:37 -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 1rJaVl-0006ZG-RF for guix-patches@gnu.org; Sat, 30 Dec 2023 09:40:26 -0500 Received: from mout-p-103.mailbox.org ([2001:67c:2050:0:465::103]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1rJaVj-0001NV-JU for guix-patches@gnu.org; Sat, 30 Dec 2023 09:40:25 -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-103.mailbox.org (Postfix) with ESMTPS id 4T2Pzh4c1fz9skV for ; Sat, 30 Dec 2023 15:40:16 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=troyfigiel.com; s=MBO0001; t=1703947216; 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=LMATtrCXfs/qyhiqUjlKWUDckD/fIMw9DUq7g0uF2G4=; b=YAG6oNgQ1MJOAcWSkPKe/7m6ov2QzCb3BtwB1TsuF1abSKzpMzK+041iukZbcNtHAEHwVM hjOWCKV332h9WZzTABAeekcEClEOAShb6H6zvXjcgL2w1PUpx27lTGSQSIOZDgXXA+09sW 5SW8qZGrZYw4VfLqRbyKwh3My60C2yAtudPWkpG7MeQYddNekjg0FIjunlEn6xfOXPNd/l 3PCNxo2dTchgC6icA2UHeAYjV76/KCUyszhB0aFqHi3usd1AZw3RcAD3rEZ0nDCO5drPFa oCZorgxW84TjIe1iZW+rKdwH/jNGNkgKtLr+67xUcEVW/UVH0uasmbnKvqmSHg== From: Troy Figiel Date: Sat, 30 Dec 2023 14:46:40 +0100 Message-ID: <87mstr3gac.fsf@troyfigiel.com> MIME-Version: 1.0 X-Rspamd-Queue-Id: 4T2Pzh4c1fz9skV Received-SPF: pass client-ip=2001:67c:2050:0:465::103; envelope-from=troy@troyfigiel.com; helo=mout-p-103.mailbox.org X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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-snappy): New variable. Change-Id: I0142f49745104db8458c0becf222eb4088c9ee58 --- gnu/packages/python-compression.scm | 31 +++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) base-commit: f24b14767d362a84e6469682b4fe303b50f4b589 diff --git a/gnu/packages/python-compression.scm b/gnu/packages/python-compression.scm index bc96bc05d3..364f741392 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,36 @@ (define-public python-lzstring (description "Lz-string is a string compressor library for Python.") (license license:expat))) +(define-public python-snappy + (package + (name "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-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")