Subject: bug#68147: closed (Re: [bug#68147] [PATCH v2] gnu: Add python-python-snappy.)

From: [email-masked] (GNU bug Tracking System)
Date: Tue, 09 Jan 2024 08:56:01 +0000

Your bug report

#68147: [PATCH] gnu: Add python-snappy.

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
68147: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=68147
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: [bug#68147] [PATCH v2] gnu: Add python-python-snappy.
From: Mathieu Othacehe <[email-masked]>
To: Troy Figiel <[email-masked]>
Cc: [email-masked]
Date: Tue, 09 Jan 2024 09:55:07 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

> * gnu/packages/python-compression.scm (python-python-snappy): New variable.

Applied, thanks,

Mathieu

Subject: [PATCH] gnu: Add python-snappy.
From: Troy Figiel <[email-masked]>
To: [email-masked]
Date: Sat, 30 Dec 2023 14:46:40 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

* gnu/packages/python-compression.scm (python-snappy): New variable.

Change-Id: I0142f49745104db8458c0becf222eb4088c9ee58
---
 gnu/packages/python-compression.scm | 31 +++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

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 <[email-masked]>
 ;;; Copyright © 2020, 2022, 2023 Marius Bakke <[email-masked]>
 ;;; Copyright © 2021 Brendan Tildesley <[email-masked]>
+;;; Copyright © 2023 Troy Figiel <[email-masked]>
 ;;;
 ;;; 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")

base-commit: f24b14767d362a84e6469682b4fe303b50f4b589
-- 
2.40.1