~ruther/guix-local

ad3047777210cf275896c672f25bbbdc082a4560 — Nicolas Graves 11 months ago a387a5b
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>
1 files changed, 17 insertions(+), 10 deletions(-)

M gnu/packages/python-compression.scm
M gnu/packages/python-compression.scm => gnu/packages/python-compression.scm +17 -10
@@ 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)))