summaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2025-11-16 11:59:49 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-11-22 13:48:46 +0000
commitad3047777210cf275896c672f25bbbdc082a4560 (patch)
treed136c49a0914e97a9ae98dad6574e4bd1acf3298 /gnu/packages
parenta387a5b999ae6425af162730d293739375a02d2a (diff)
gnu: python-pyzstd: Update to 0.18.0.
* gnu/packages/python-compression.scm (python-pyzstd): Update to 0.18.0. [source]: Switch to git-fetch. <snippet>: Touch zstd/LICENSE, which is used in setup.py. [native-inputs]: Remove python-wheel. [propagated-inputs]: Add python-typing-extensions. [description]: Improve style. Change-Id: Idc60b6bf3119c7b6c3799826525263fbee3cd90b Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/python-compression.scm27
1 files changed, 17 insertions, 10 deletions
diff --git a/gnu/packages/python-compression.scm b/gnu/packages/python-compression.scm
index 8702cc4a2e4..5bbbd67295b 100644
--- a/gnu/packages/python-compression.scm
+++ b/gnu/packages/python-compression.scm
@@ -1042,27 +1042,34 @@ provided.")
(define-public python-pyzstd
(package
(name "python-pyzstd")
- (version "0.15.9")
+ (version "0.18.0")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "pyzstd" version))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/Rogdham/pyzstd")
+ (commit version)))
+ (file-name (git-file-name name version))
(sha256
- (base32 "1iycfmif15v1jhv0gsza1hyd1hn3sz0vn9s1y79abzv8axndxzfb"))
+ (base32 "08ih7vr3rzwrzpzwhk1k94z5nm9mmvls7c6w8wsqncf0kyl8d7yp"))
(modules '((guix build utils)))
- (snippet
- '(begin
- ;; Remove a bundled copy of the zstd sources.
- (delete-file-recursively "zstd")))))
+ (snippet '(begin
+ ;; Remove a bundled copy of the zstd sources.
+ (delete-file-recursively "zstd")
+ (mkdir "zstd")
+ (call-with-output-file "zstd/LICENSE"
+ (const #t))))))
(build-system pyproject-build-system)
(arguments
(list
#:configure-flags
#~'(("--build-option" . "--dynamic-link-zstd"))))
(inputs (list `(,zstd "lib")))
- (native-inputs (list python-pytest python-setuptools python-wheel))
+ (native-inputs (list python-pytest python-setuptools))
+ (propagated-inputs (list python-typing-extensions))
(home-page "https://github.com/Rogdham/pyzstd")
(synopsis "Zstandard bindings for Python")
- (description "This package provides Python bindings to the Zstandard (zstd)
+ (description
+ "This package provides Python bindings to the Zstandard (zstd)
compression library. The API is similar to Python's bz2/lzma/zlib module.")
(license license:bsd-3)))