summaryrefslogtreecommitdiff
path: root/gnu/packages/python-compression.scm
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/packages/python-compression.scm')
-rw-r--r--gnu/packages/python-compression.scm43
1 files changed, 16 insertions, 27 deletions
diff --git a/gnu/packages/python-compression.scm b/gnu/packages/python-compression.scm
index 4361c0b65e..8fd893cb8e 100644
--- a/gnu/packages/python-compression.scm
+++ b/gnu/packages/python-compression.scm
@@ -168,7 +168,6 @@ to access its data, so it can be used as a drop-in replacement.")
python-coverage
python-coveralls
python-hypothesis
- python-pyannotate
python-pytest
python-pytest-cov
python-setuptools
@@ -394,8 +393,7 @@ library.")
(build-system pyproject-build-system)
(propagated-inputs (list python-importlib-metadata))
(native-inputs
- (list python-pyannotate
- python-pytest
+ (list python-pytest
python-setuptools-scm
python-setuptools
python-wheel))
@@ -524,6 +522,10 @@ several possible methods.")
(base32
"0lwniinfr3rb10n0c203a09vz06vxnnj637yqn8ipdlml89gj7kr"))))
(build-system pyproject-build-system)
+ (arguments
+ (list
+ #:test-flags
+ #~(list "--ignore=tests/test_benchmark.py")))
(propagated-inputs
(list python-brotli
python-brotlicffi
@@ -537,15 +539,12 @@ several possible methods.")
python-pyzstd
python-texttable))
(native-inputs
- (list python-coverage
- python-setuptools
- python-coveralls
+ (list python-setuptools
python-libarchive-c
python-py-cpuinfo
python-pyannotate
python-pytest
python-pytest-benchmark
- python-pytest-cov
python-pytest-remotedata
python-pytest-timeout
python-setuptools-scm
@@ -638,9 +637,10 @@ the LZ4 frame format.")
(method url-fetch)
(uri (pypi-uri "lzstring" version))
(sha256
- (base32
- "18ly9pppy2yspxzw7k1b23wk77k7m44rz2g0271bqgqrk3jn3yhs"))))
- (build-system python-build-system)
+ (base32 "18ly9pppy2yspxzw7k1b23wk77k7m44rz2g0271bqgqrk3jn3yhs"))))
+ (build-system pyproject-build-system)
+ (native-inputs
+ (list python-setuptools python-wheel))
(propagated-inputs
(list python-future))
(home-page "https://github.com/gkovacs/lz-string-python")
@@ -932,27 +932,16 @@ provided.")
'(begin
;; Remove a bundled copy of the zstd sources.
(delete-file-recursively "zstd")))))
- (build-system python-build-system)
+ (build-system pyproject-build-system)
(arguments
(list
+ ;; XXX: This is ugly. TODO python-team:
+ ;; Migrate pyproject to (json) instead of (guix build json).
#:configure-flags
- #~(list "--dynamic-link-zstd")
- #:phases
- #~(modify-phases %standard-phases
- (replace 'build
- ;; The python-build-system's phase doesn't honour configure-flags.
- (lambda* (#:key configure-flags #:allow-other-keys)
- (apply invoke "python" "./setup.py" "build"
- configure-flags)))
- (replace 'check
- ;; The python-build-system's phase doesn't honour configure-flags.
- (lambda* (#:key tests? test-target configure-flags
- #:allow-other-keys)
- (when tests?
- (apply invoke "python" "./setup.py" test-target
- configure-flags)))))))
+ #~`(@ . (("--build-option" . "--dynamic-link-zstd")))))
(inputs (list `(,zstd "lib")))
- (home-page "https://github.com/animalize/pyzstd")
+ (native-inputs (list python-pytest python-setuptools python-wheel))
+ (home-page "https://github.com/Rogdham/pyzstd")
(synopsis "Zstandard bindings for Python")
(description "This package provides Python bindings to the Zstandard (zstd)
compression library. The API is similar to Python's bz2/lzma/zlib module.")