2019-01-15 16:42:59 +00:00
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
2023-07-16 00:00:07 +00:00
|
|
|
;;; Copyright © 2017, 2018, 2023 Tobias Geerinckx-Rice <me@tobias.gr>
|
2022-11-23 12:05:29 +00:00
|
|
|
;;; Copyright © 2017, 2019, 2021, 2022 Ricardo Wurmus <rekado@elephly.net>
|
mailmap: Update entries for Nikita.
* .mailmap: change email and name for Nikita.
* Makefile.am, doc/guix.texi, etc/completion/fish/guix.fish,
gnu/packages/accessibility.scm, gnu/packages/admin.scm,
gnu/packages/audio.scm, gnu/packages/autotools.scm, gnu/packages/cdrom.scm,
gnu/packages/check.scm, gnu/packages/cinnamon.scm,
gnu/packages/compression.scm, gnu/packages/crypto.scm,
gnu/packages/databases.scm, gnu/packages/django.scm, gnu/packages/dns.scm,
gnu/packages/elixir.scm, gnu/packages/emacs-xyz.scm, gnu/packages/emacs.scm,
gnu/packages/enlightenment.scm, gnu/packages/erlang.scm,
gnu/packages/fonts.scm, gnu/packages/fontutils.scm, gnu/packages/forth.scm,
gnu/packages/fvwm.scm, gnu/packages/games.scm, gnu/packages/gl.scm,
gnu/packages/gnome.scm, gnu/packages/gnunet.scm, gnu/packages/gnupg.scm,
gnu/packages/gtk.scm, gnu/packages/guile-wm.scm, gnu/packages/guile-xyz.scm,
gnu/packages/haskell-apps.scm, gnu/packages/haskell-check.scm,
gnu/packages/haskell-crypto.scm, gnu/packages/haskell-xyz.scm,
gnu/packages/haskell.scm, gnu/packages/image-viewers.scm,
gnu/packages/image.scm, gnu/packages/irc.scm, gnu/packages/language.scm,
gnu/packages/libcanberra.scm, gnu/packages/linux.scm,
gnu/packages/lisp-xyz.scm, gnu/packages/lisp.scm, gnu/packages/lolcode.scm,
gnu/packages/lxde.scm, gnu/packages/lxqt.scm, gnu/packages/mail.scm,
gnu/packages/markup.scm, gnu/packages/mate.scm, gnu/packages/maths.scm,
gnu/packages/mc.scm, gnu/packages/messaging.scm, gnu/packages/music.scm,
gnu/packages/ncurses.scm, gnu/packages/networking.scm,
gnu/packages/nickle.scm, gnu/packages/openbox.scm, gnu/packages/pdf.scm,
gnu/packages/perl-check.scm, gnu/packages/perl.scm,
gnu/packages/python-compression.scm, gnu/packages/python-crypto.scm,
gnu/packages/python-web.scm, gnu/packages/python-xyz.scm,
gnu/packages/python.scm, gnu/packages/qt.scm, gnu/packages/ruby.scm,
gnu/packages/rust.scm, gnu/packages/scheme.scm,
gnu/packages/serialization.scm, gnu/packages/shells.scm,
gnu/packages/ssh.scm, gnu/packages/suckless.scm, gnu/packages/tbb.scm,
gnu/packages/telephony.scm, gnu/packages/text-editors.scm,
gnu/packages/textutils.scm, gnu/packages/time.scm, gnu/packages/tls.scm,
gnu/packages/tor.scm, gnu/packages/version-control.scm,
gnu/packages/video.scm, gnu/packages/vim.scm, gnu/packages/web.scm,
gnu/packages/wm.scm, gnu/packages/xdisorg.scm, gnu/packages/xfce.scm,
gnu/packages/xml.scm, gnu/packages/xorg.scm, gnu/services/certbot.scm,
gnu/services/desktop.scm, gnu/services/version-control.scm,
gnu/services/web.scm, guix/import/hackage.scm, guix/licenses.scm: Likewise.
Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
2020-05-11 11:05:45 +00:00
|
|
|
;;; Copyright © 2017 Nikita <nikita@n0.is>
|
2019-01-15 16:42:59 +00:00
|
|
|
;;; Copyright © 2017 Julien Lepiller <julien@lepiller.eu>
|
2022-11-23 20:18:20 +00:00
|
|
|
;;; Copyright © 2018-2020, 2022 Efraim Flashner <efraim@flashner.co.il>
|
2020-01-02 23:13:15 +00:00
|
|
|
;;; Copyright © 2020 Nicolas Goaziou <mail@nicolasgoaziou.fr>
|
2022-08-15 20:23:13 +00:00
|
|
|
;;; Copyright © 2020, 2022 Marius Bakke <marius@gnu.org>
|
2021-02-25 02:30:02 +00:00
|
|
|
;;; Copyright © 2021 Brendan Tildesley <mail@brendan.scot>
|
2019-01-15 16:42:59 +00:00
|
|
|
;;;
|
|
|
|
;;; This file is part of GNU Guix.
|
|
|
|
;;;
|
|
|
|
;;; GNU Guix is free software; you can redistribute it and/or modify it
|
|
|
|
;;; under the terms of the GNU General Public License as published by
|
|
|
|
;;; the Free Software Foundation; either version 3 of the License, or (at
|
|
|
|
;;; your option) any later version.
|
|
|
|
;;;
|
|
|
|
;;; GNU Guix is distributed in the hope that it will be useful, but
|
|
|
|
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
;;; GNU General Public License for more details.
|
|
|
|
;;;
|
|
|
|
;;; You should have received a copy of the GNU General Public License
|
|
|
|
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
(define-module (gnu packages python-compression)
|
|
|
|
#:use-module ((guix licenses) #:prefix license:)
|
|
|
|
#:use-module (guix utils)
|
|
|
|
#:use-module (guix packages)
|
|
|
|
#:use-module (guix download)
|
2021-12-21 05:03:46 +00:00
|
|
|
#:use-module (guix gexp)
|
2019-01-15 16:42:59 +00:00
|
|
|
#:use-module (guix build-system gnu)
|
|
|
|
#:use-module (guix build-system python)
|
2022-11-23 12:05:29 +00:00
|
|
|
#:use-module (guix build-system pyproject)
|
2019-01-15 16:42:59 +00:00
|
|
|
#:use-module (gnu packages)
|
2021-02-25 02:49:40 +00:00
|
|
|
#:use-module (gnu packages libffi)
|
2019-01-15 16:42:59 +00:00
|
|
|
#:use-module (gnu packages compression)
|
|
|
|
#:use-module (gnu packages check)
|
|
|
|
#:use-module (gnu packages maths)
|
2020-02-01 14:51:29 +00:00
|
|
|
#:use-module (gnu packages pkg-config)
|
2019-01-15 16:42:59 +00:00
|
|
|
#:use-module (gnu packages python)
|
2021-03-10 07:30:54 +00:00
|
|
|
#:use-module (gnu packages python-build)
|
2021-02-25 02:30:02 +00:00
|
|
|
#:use-module (gnu packages python-check)
|
2021-02-25 03:02:23 +00:00
|
|
|
#:use-module (gnu packages python-crypto)
|
2019-06-25 08:56:34 +00:00
|
|
|
#:use-module (gnu packages python-xyz)
|
|
|
|
#:use-module (gnu packages sphinx))
|
2019-01-15 16:42:59 +00:00
|
|
|
|
2021-02-25 02:30:02 +00:00
|
|
|
(define-public python-multivolumefile
|
|
|
|
(package
|
|
|
|
(name "python-multivolumefile")
|
2022-11-23 12:09:39 +00:00
|
|
|
(version "0.2.3")
|
2021-02-25 02:30:02 +00:00
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (pypi-uri "multivolumefile" version))
|
|
|
|
(sha256
|
|
|
|
(base32
|
2022-11-23 12:09:39 +00:00
|
|
|
"1mh9sz50s1p8ik83a455pqd57syprad7xhfmk28yb5mwmw58sr50"))))
|
|
|
|
(build-system pyproject-build-system)
|
2021-02-25 02:30:02 +00:00
|
|
|
(native-inputs
|
2022-11-23 12:09:39 +00:00
|
|
|
(list python-setuptools-scm
|
2021-12-13 16:18:24 +00:00
|
|
|
python-coverage
|
|
|
|
python-coveralls
|
2022-11-23 12:09:39 +00:00
|
|
|
python-hypothesis
|
2021-12-13 16:18:24 +00:00
|
|
|
python-pyannotate
|
|
|
|
python-pytest
|
|
|
|
python-pytest-cov))
|
2021-02-25 02:30:02 +00:00
|
|
|
(home-page "https://github.com/miurahr/multivolume")
|
|
|
|
(synopsis "Treat multiple files as one")
|
|
|
|
(description "MultiVolumefile is a Python library that provides a
|
|
|
|
file-object abstraction, making it possible to use multiple files as if they
|
|
|
|
were a single file.")
|
|
|
|
(license license:lgpl2.1+)))
|
|
|
|
|
2022-11-23 12:17:31 +00:00
|
|
|
(define-public python-pybcj
|
|
|
|
(package
|
|
|
|
(name "python-pybcj")
|
|
|
|
(version "1.0.1")
|
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (pypi-uri "pybcj" version))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"1hvm3c3mb20z25kmbzyyn6pr5inx50z0ignl8b0bggxaik82ws4b"))))
|
|
|
|
(build-system pyproject-build-system)
|
|
|
|
(propagated-inputs (list python-importlib-metadata))
|
|
|
|
(native-inputs
|
|
|
|
(list python-coverage
|
|
|
|
python-hypothesis
|
|
|
|
python-pytest
|
|
|
|
python-pytest-cov
|
|
|
|
python-setuptools-scm))
|
|
|
|
(home-page "https://codeberg.org/miurahr/pybcj")
|
|
|
|
(synopsis "BCJ filter library")
|
|
|
|
(description "In data compression, BCJ, short for Branch-Call-Jump, refers
|
|
|
|
to a technique that improves the compression of machine code of executable
|
|
|
|
binaries by replacing relative branch addresses with absolute ones. This
|
|
|
|
allows a LZMA compressor to identify duplicate targets and archive higher
|
|
|
|
compression rate. BCJ is used in the 7-zip compression utility as the default
|
|
|
|
filter for executable binaries.
|
|
|
|
|
|
|
|
pybcj provides Python bindings to a BCJ implementation in C.")
|
|
|
|
(license license:lgpl2.1+)))
|
|
|
|
|
2021-03-10 07:30:54 +00:00
|
|
|
(define-public python-bcj-cffi
|
|
|
|
(package
|
|
|
|
(name "python-bcj-cffi")
|
|
|
|
(version "0.5.0")
|
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (pypi-uri "bcj-cffi" version))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"1jcczrb8zgg6w7v76w1wpz3nw75fghk3xwxkn09ll7kck7sdf68d"))))
|
|
|
|
(build-system python-build-system)
|
|
|
|
(propagated-inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
(list python-cffi python-toml python-setuptools-scm))
|
2021-03-10 07:30:54 +00:00
|
|
|
(native-inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
(list python-setuptools python-coverage python-pytest
|
|
|
|
python-pytest-cov))
|
2021-03-10 07:30:54 +00:00
|
|
|
(home-page "https://github.com/miurahr/bcj-cffi")
|
|
|
|
(synopsis "Branch / Call /Jump CFFI library in Python")
|
|
|
|
(description "This package provides an implementation of the Branch / Call /
|
|
|
|
Jump conversion filter by CFFI for Python.")
|
|
|
|
(license license:lgpl2.1+)))
|
|
|
|
|
2022-11-23 12:06:51 +00:00
|
|
|
(define-public python-brotlicffi
|
|
|
|
(package
|
|
|
|
(name "python-brotlicffi")
|
|
|
|
(version "1.0.9.2")
|
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (pypi-uri "brotlicffi" version))
|
|
|
|
(sha256
|
|
|
|
(base32
|
2022-11-23 20:18:20 +00:00
|
|
|
"15kxgdiqcg0cm6h5xq3vkbhw7674673hcx3n2yicd3wx29l8l90c"))
|
|
|
|
(snippet
|
|
|
|
#~(begin
|
|
|
|
(use-modules (guix build utils))
|
|
|
|
(delete-file-recursively "libbrotli")))))
|
2022-11-23 12:06:51 +00:00
|
|
|
(build-system pyproject-build-system)
|
2022-11-23 20:18:20 +00:00
|
|
|
(arguments
|
|
|
|
(list
|
|
|
|
#:phases
|
|
|
|
#~(modify-phases %standard-phases
|
|
|
|
(add-after 'unpack 'use-shared-brotli
|
|
|
|
(lambda _
|
|
|
|
(setenv "USE_SHARED_BROTLI" "1"))))))
|
2022-11-23 12:06:51 +00:00
|
|
|
(propagated-inputs (list python-cffi))
|
2022-11-23 20:18:20 +00:00
|
|
|
(inputs (list brotli))
|
2022-11-23 12:06:51 +00:00
|
|
|
(home-page "https://github.com/python-hyper/brotlicffi")
|
|
|
|
(synopsis "Python CFFI bindings to the Brotli library")
|
|
|
|
(description "This package provides Python CFFI bindings to the Brotli
|
|
|
|
library.")
|
|
|
|
(license license:expat)))
|
|
|
|
|
2022-11-23 12:14:37 +00:00
|
|
|
(define-public python-inflate64
|
|
|
|
(package
|
|
|
|
(name "python-inflate64")
|
|
|
|
(version "0.3.1")
|
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (pypi-uri "inflate64" version))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"0767j35gkwaykl1iq9qn8rc25j1ggv56x3d1vzjpk89bzpzdhbdm"))))
|
|
|
|
(build-system pyproject-build-system)
|
|
|
|
(propagated-inputs (list python-importlib-metadata))
|
|
|
|
(native-inputs
|
|
|
|
(list python-pyannotate
|
|
|
|
python-pytest
|
|
|
|
python-setuptools-scm))
|
|
|
|
(home-page "https://pypi.org/project/inflate64/")
|
|
|
|
(synopsis "deflate64 compression/decompression library")
|
|
|
|
(description "The @code{inflate64} package provides @code{Deflater} and
|
|
|
|
@code{Inflater} classes to compress and decompress with the Enhanced Deflate
|
|
|
|
compression algorithm.")
|
|
|
|
(license license:lgpl2.1+)))
|
|
|
|
|
2021-12-15 13:40:16 +00:00
|
|
|
(define-public python-isal
|
|
|
|
(package
|
|
|
|
(name "python-isal")
|
2023-07-03 14:07:54 +00:00
|
|
|
(version "1.1.0")
|
2021-12-15 13:40:16 +00:00
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (pypi-uri "isal" version))
|
|
|
|
(sha256
|
2023-07-03 14:07:54 +00:00
|
|
|
(base32 "01914gwfrb95dagz9sqnsmvc0hssg2pb6aj204fdamss4piz8r0k"))
|
|
|
|
;; Remove bundled isa-l source code
|
2021-12-15 13:40:16 +00:00
|
|
|
(modules '((guix build utils)))
|
|
|
|
(snippet
|
|
|
|
'(delete-file-recursively "src/isal/isa-l"))))
|
2023-07-03 14:07:54 +00:00
|
|
|
(build-system pyproject-build-system)
|
2021-12-15 13:40:16 +00:00
|
|
|
(arguments
|
|
|
|
`(#:phases
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
(add-after 'unpack 'use-dynamic-linking
|
|
|
|
(lambda _ (setenv "PYTHON_ISAL_LINK_DYNAMIC" "1"))))))
|
|
|
|
(inputs (list isa-l))
|
|
|
|
(native-inputs (list python-cython))
|
|
|
|
(home-page "https://github.com/pycompression/python-isal")
|
|
|
|
(synopsis "Python bindings for the ISA-L compression library")
|
|
|
|
(description
|
|
|
|
"This package aims to provide faster zlib and gzip compatible compression
|
|
|
|
and decompression by implementing Python bindings for the ISA-L library.")
|
|
|
|
(license license:expat)))
|
|
|
|
|
2022-11-23 12:05:29 +00:00
|
|
|
(define-public python-pyppmd
|
|
|
|
(package
|
|
|
|
(name "python-pyppmd")
|
|
|
|
(version "1.0.0")
|
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (pypi-uri "pyppmd" version))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"03w4x26mar0ha73c3v39psn1i0k6xrzwmaxfsxysic73jz99np07"))))
|
|
|
|
(build-system pyproject-build-system)
|
|
|
|
(native-inputs
|
|
|
|
(list python-coverage
|
|
|
|
python-hypothesis
|
|
|
|
python-pytest
|
|
|
|
python-pytest-benchmark
|
|
|
|
python-pytest-cov
|
|
|
|
python-pytest-timeout
|
|
|
|
python-setuptools-scm))
|
|
|
|
(home-page "https://github.com/miurahr/pyppmd")
|
|
|
|
(synopsis "PPMd compression/decompression library")
|
|
|
|
(description "Pyppmd provides classes and functions for compressing and
|
|
|
|
decompressing text data, using the @dfn{Prediction by partial matching} (PPM)
|
|
|
|
compression algorithm variation H and I.2. It provides an API similar to
|
|
|
|
Python's zlib/bz2/lzma modules.")
|
|
|
|
(license license:lgpl2.1+)))
|
|
|
|
|
2021-02-25 02:49:40 +00:00
|
|
|
(define-public python-ppmd-cffi
|
|
|
|
(package
|
|
|
|
(name "python-ppmd-cffi")
|
2022-11-22 23:29:04 +00:00
|
|
|
(version "0.5.0")
|
2021-02-25 02:49:40 +00:00
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (pypi-uri "ppmd-cffi" version))
|
|
|
|
(sha256
|
|
|
|
(base32
|
2022-11-22 23:29:04 +00:00
|
|
|
"0vprpl29fkflqx0m6anfpx7q7i4cw0d0qxcdm91k4pl82dcad81g"))))
|
2021-02-25 02:49:40 +00:00
|
|
|
(build-system python-build-system)
|
|
|
|
(propagated-inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
(list python-cffi))
|
2021-02-25 02:49:40 +00:00
|
|
|
(native-inputs
|
2022-11-22 23:29:04 +00:00
|
|
|
(list python-hypothesis
|
2021-12-13 16:18:24 +00:00
|
|
|
python-setuptools-scm
|
|
|
|
python-coverage
|
|
|
|
python-pytest
|
|
|
|
python-pytest-cov))
|
2021-02-25 02:49:40 +00:00
|
|
|
(home-page "https://github.com/miurahr/ppmd")
|
|
|
|
(synopsis "Prediction by Partial Matching compression library")
|
|
|
|
(description "PPMd is a compression algorithm library using the Prediction
|
|
|
|
by Partial Matching statistical technique. It is used in RAR and 7-Zip as one of
|
|
|
|
several possible methods.")
|
|
|
|
(license license:lgpl2.1+)))
|
|
|
|
|
2021-02-25 03:02:23 +00:00
|
|
|
(define-public python-py7zr
|
|
|
|
(package
|
|
|
|
(name "python-py7zr")
|
gnu: python-py7zr: Update to 0.20.2.
* gnu/packages/python-compression.scm (python-py7zr): Update to 0.20.2.
[build-system]: Use pyproject-build-system.
[propagated-inputs]: Add python-brotli, python-brotlicffi,
python-importlib-metadata, python-inflate64, python-psutil, python-pybcj,
python-pycryptodomex, and python-pyppmd; remove python-bcj-cffi,
python-ppmd-cffi, python-pycryptodome, and python-zstandard.
2022-11-23 12:17:39 +00:00
|
|
|
(version "0.20.2")
|
2021-02-25 03:02:23 +00:00
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (pypi-uri "py7zr" version))
|
|
|
|
(sha256
|
|
|
|
(base32
|
gnu: python-py7zr: Update to 0.20.2.
* gnu/packages/python-compression.scm (python-py7zr): Update to 0.20.2.
[build-system]: Use pyproject-build-system.
[propagated-inputs]: Add python-brotli, python-brotlicffi,
python-importlib-metadata, python-inflate64, python-psutil, python-pybcj,
python-pycryptodomex, and python-pyppmd; remove python-bcj-cffi,
python-ppmd-cffi, python-pycryptodome, and python-zstandard.
2022-11-23 12:17:39 +00:00
|
|
|
"0lwniinfr3rb10n0c203a09vz06vxnnj637yqn8ipdlml89gj7kr"))))
|
|
|
|
(build-system pyproject-build-system)
|
2021-02-25 03:02:23 +00:00
|
|
|
(propagated-inputs
|
gnu: python-py7zr: Update to 0.20.2.
* gnu/packages/python-compression.scm (python-py7zr): Update to 0.20.2.
[build-system]: Use pyproject-build-system.
[propagated-inputs]: Add python-brotli, python-brotlicffi,
python-importlib-metadata, python-inflate64, python-psutil, python-pybcj,
python-pycryptodomex, and python-pyppmd; remove python-bcj-cffi,
python-ppmd-cffi, python-pycryptodome, and python-zstandard.
2022-11-23 12:17:39 +00:00
|
|
|
(list python-brotli
|
|
|
|
python-brotlicffi
|
|
|
|
python-importlib-metadata
|
|
|
|
python-inflate64
|
2021-12-13 16:18:24 +00:00
|
|
|
python-multivolumefile
|
gnu: python-py7zr: Update to 0.20.2.
* gnu/packages/python-compression.scm (python-py7zr): Update to 0.20.2.
[build-system]: Use pyproject-build-system.
[propagated-inputs]: Add python-brotli, python-brotlicffi,
python-importlib-metadata, python-inflate64, python-psutil, python-pybcj,
python-pycryptodomex, and python-pyppmd; remove python-bcj-cffi,
python-ppmd-cffi, python-pycryptodome, and python-zstandard.
2022-11-23 12:17:39 +00:00
|
|
|
python-psutil
|
|
|
|
python-pybcj
|
|
|
|
python-pycryptodomex
|
|
|
|
python-pyppmd
|
2021-12-13 16:18:24 +00:00
|
|
|
python-pyzstd
|
gnu: python-py7zr: Update to 0.20.2.
* gnu/packages/python-compression.scm (python-py7zr): Update to 0.20.2.
[build-system]: Use pyproject-build-system.
[propagated-inputs]: Add python-brotli, python-brotlicffi,
python-importlib-metadata, python-inflate64, python-psutil, python-pybcj,
python-pycryptodomex, and python-pyppmd; remove python-bcj-cffi,
python-ppmd-cffi, python-pycryptodome, and python-zstandard.
2022-11-23 12:17:39 +00:00
|
|
|
python-texttable))
|
2021-02-25 03:02:23 +00:00
|
|
|
(native-inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
(list python-setuptools
|
|
|
|
python-setuptools-scm
|
|
|
|
python-coverage
|
|
|
|
python-coveralls
|
|
|
|
python-libarchive-c
|
|
|
|
python-py-cpuinfo
|
|
|
|
python-pyannotate
|
|
|
|
python-pytest
|
|
|
|
python-pytest-benchmark
|
|
|
|
python-pytest-cov
|
|
|
|
python-pytest-remotedata
|
|
|
|
python-pytest-timeout))
|
2021-02-25 03:02:23 +00:00
|
|
|
(home-page "https://github.com/miurahr/py7zr")
|
|
|
|
(synopsis "7-zip in Python")
|
|
|
|
(description "This package provides py7zr, which implements 7-zip
|
|
|
|
archive compression, decompression, encryption and decryption in
|
|
|
|
Python.")
|
|
|
|
(license license:lgpl2.1+)))
|
|
|
|
|
2019-01-15 16:42:59 +00:00
|
|
|
(define-public python-lzo
|
|
|
|
(package
|
|
|
|
(name "python-lzo")
|
2022-08-21 00:00:01 +00:00
|
|
|
(version "1.14")
|
2019-01-15 16:42:59 +00:00
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (pypi-uri "python-lzo" version))
|
|
|
|
(sha256
|
2022-08-21 00:00:01 +00:00
|
|
|
(base32 "0315nq6r39n51n8qqamb7xv0ib0qrh76q7g3a1977172mbndijw3"))))
|
2019-01-15 16:42:59 +00:00
|
|
|
(build-system python-build-system)
|
|
|
|
(arguments
|
2022-08-21 00:00:00 +00:00
|
|
|
(list
|
|
|
|
#:test-target "check"
|
|
|
|
#:phases
|
|
|
|
#~(modify-phases %standard-phases
|
|
|
|
(add-after 'unpack 'patch-setuppy
|
|
|
|
(lambda _
|
|
|
|
(substitute* "setup.py"
|
|
|
|
(("include_dirs.append\\(.*\\)")
|
|
|
|
(string-append "include_dirs.append('"
|
|
|
|
#$(this-package-input "lzo")
|
|
|
|
"/include/lzo"
|
|
|
|
"')"))))))))
|
2019-01-15 16:42:59 +00:00
|
|
|
(inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
(list lzo))
|
2019-01-15 16:42:59 +00:00
|
|
|
(home-page "https://github.com/jd-boyd/python-lzo")
|
|
|
|
(synopsis "Python bindings for the LZO data compression library")
|
|
|
|
(description
|
|
|
|
"Python-LZO provides Python bindings for LZO, i.e. you can access
|
|
|
|
the LZO library from your Python scripts thereby compressing ordinary
|
|
|
|
Python strings.")
|
|
|
|
(license license:gpl2+)))
|
|
|
|
|
|
|
|
(define-public python-lz4
|
|
|
|
(package
|
|
|
|
(name "python-lz4")
|
2023-04-12 14:53:52 +00:00
|
|
|
(version "4.3.2")
|
2019-01-15 16:42:59 +00:00
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (pypi-uri "lz4" version))
|
|
|
|
(sha256
|
|
|
|
(base32
|
2023-04-12 14:53:52 +00:00
|
|
|
"1nmc36j5xnk7mvwwpm0nb1sddjk5iv77h877fdkkxcngm621shz1"))
|
2020-02-01 14:51:29 +00:00
|
|
|
(modules '((guix build utils)))
|
2023-04-12 14:53:52 +00:00
|
|
|
(snippet '(begin
|
|
|
|
;; Remove bundled copy of lz4.
|
|
|
|
(delete-file-recursively "lz4libs")))))
|
2019-01-15 16:42:59 +00:00
|
|
|
(build-system python-build-system)
|
2022-08-15 20:23:13 +00:00
|
|
|
(arguments
|
|
|
|
(list #:phases
|
|
|
|
#~(modify-phases %standard-phases
|
|
|
|
(replace 'check
|
|
|
|
(lambda* (#:key tests? #:allow-other-keys)
|
|
|
|
(when tests?
|
|
|
|
;; Taken from tox.ini (excludes experimental tests).
|
|
|
|
(invoke "pytest" "-vv" "tests/block" "tests/frame")))))))
|
2019-01-15 16:42:59 +00:00
|
|
|
(native-inputs
|
2022-08-15 20:23:13 +00:00
|
|
|
(list pkg-config python-pytest python-pkgconfig python-setuptools-scm
|
|
|
|
;; For tests.
|
|
|
|
python-psutil))
|
2020-02-01 14:51:29 +00:00
|
|
|
(inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
(list lz4))
|
2019-01-15 16:42:59 +00:00
|
|
|
(home-page "https://github.com/python-lz4/python-lz4")
|
|
|
|
(synopsis "LZ4 bindings for Python")
|
|
|
|
(description
|
|
|
|
"This package provides python bindings for the lz4 compression library
|
|
|
|
by Yann Collet. The project contains bindings for the LZ4 block format and
|
|
|
|
the LZ4 frame format.")
|
|
|
|
(license license:bsd-3)))
|
|
|
|
|
|
|
|
(define-public python-lzstring
|
|
|
|
(package
|
|
|
|
(name "python-lzstring")
|
|
|
|
(version "1.0.4")
|
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (pypi-uri "lzstring" version))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"18ly9pppy2yspxzw7k1b23wk77k7m44rz2g0271bqgqrk3jn3yhs"))))
|
|
|
|
(build-system python-build-system)
|
|
|
|
(propagated-inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
(list python-future))
|
2019-01-15 16:42:59 +00:00
|
|
|
(home-page "https://github.com/gkovacs/lz-string-python")
|
|
|
|
(synopsis "String compression")
|
|
|
|
(description "Lz-string is a string compressor library for Python.")
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
|
|
(define-public bitshuffle
|
|
|
|
(package
|
|
|
|
(name "bitshuffle")
|
|
|
|
(version "0.3.5")
|
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (pypi-uri "bitshuffle" version))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"1823x61kyax4dc2hjmc1xraskxi1193y8lvxd03vqv029jrj8cjy"))
|
|
|
|
(modules '((guix build utils)))
|
|
|
|
(snippet
|
|
|
|
'(begin
|
|
|
|
;; Remove generated Cython files.
|
|
|
|
(delete-file "bitshuffle/h5.c")
|
|
|
|
(delete-file "bitshuffle/ext.c")
|
|
|
|
#t))))
|
|
|
|
(build-system python-build-system)
|
|
|
|
(arguments
|
|
|
|
`(#:tests? #f ; fail: https://github.com/h5py/h5py/issues/769
|
|
|
|
#:phases
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
(add-after 'unpack 'fix-neon-detection
|
|
|
|
;; Neon is only for aarch64 ATM
|
|
|
|
;; see: https://github.com/kiyo-masui/bitshuffle/pull/73
|
|
|
|
(lambda _
|
|
|
|
(substitute* "src/bitshuffle_core.c"
|
|
|
|
(("#define USEARMNEON")
|
|
|
|
"#ifdef __aarch64__\n#define USEARMNEON\n#endif"))
|
|
|
|
#t))
|
|
|
|
(add-after 'unpack 'dont-build-native
|
|
|
|
(lambda _
|
|
|
|
(substitute* "setup.py"
|
|
|
|
(("'-march=native', ") ""))
|
|
|
|
#t)))))
|
|
|
|
(inputs
|
|
|
|
`(("numpy" ,python-numpy)
|
|
|
|
("h5py" ,python-h5py)
|
|
|
|
("hdf5" ,hdf5)))
|
|
|
|
(native-inputs
|
|
|
|
`(("cython" ,python-cython)))
|
|
|
|
(home-page "https://github.com/kiyo-masui/bitshuffle")
|
|
|
|
(synopsis "Filter for improving compression of typed binary data")
|
|
|
|
(description "Bitshuffle is an algorithm that rearranges typed, binary data
|
|
|
|
for improving compression, as well as a python/C package that implements this
|
|
|
|
algorithm within the Numpy framework.")
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
|
|
(define-public bitshuffle-for-snappy
|
gnu: Use PACKAGE/INHERIT in more places.
* gnu/packages/algebra.scm (fftwf, fftw-openmpi),
gnu/packages/audio.scm (ztoolkit-rsvg),
gnu/packages/bioinformatics.scm (python2-dendropy),
gnu/packages/boost.scm (boost-with-python2),
gnu/packages/check.scm (python2-mock, python2-pytest-mock),
gnu/packages/cups.scm (hplip-minimal),
gnu/packages/freedesktop.scm (libinput-minimal),
gnu/packages/gettext.scm (gnu-gettext),
gnu/packages/glib.scm (python2-pygobject),
gnu/packages/gnome.scm (gdl-minimal, libsoup-minimal, python2-pyatspi),
gnu/packages/groff.scm (groff-minimal),
gnu/packages/jami.scm (ffmpeg-jami),
gnu/packages/libcanberra.scm (libcanberra/gtk+-2),
gnu/packages/lirc.scm (python2-lirc),
gnu/packages/llvm.scm (clang-runtime-3.5),
gnu/packages/mpi.scm (java-openmpi, openmpi-thread-multiple),
gnu/packages/node.scm (libnode),
gnu/packages/onc-rpc.scm (libtirpc/hurd),
gnu/packages/python-compression.scm (bitshuffle-for-snappy),
gnu/packages/python-crypto.scm (python2-pycrypto, python2-cryptography)
(python2-cryptography, python2-m2crypto),
gnu/packages/python-web.scm (python2-html2text, python2-tornado)
(python2-terminado, python2-ndg-httpsclient, python2-websocket-client)
(python2-rauth, python2-url, python2-s3transfer),
gnu/packages/python-xyz.scm (python2-psutil, python2-serpent)
(python2-humanfriendly, python2-empy, python2-parse-type, python2-polib)
(python2-jsonschema, python2-pystache, python2-cython, python2-numpydoc)
(python2-ipyparallel, python2-traitlets, python2-dbus)
(python2-beautifulsoup4, python2-pep517, python2-flake8, python2-llfuse)
(python2-tlsh, python-file, python2-notebook, python-jupyter-console-minimal)
(python2-contextlib2, python2-promise, python2-anyjson, python2-amqp)
(python2-kombu, python2-billiard, python2-celery, python2-whoosh)
(python2-jellyfish, python-rope, ptpython-2, python2-binaryornot)
(python2-setproctitle, python2-argcomplete, python2-xopen, python2-isort)
(python2-radon, python2-rfc6555, python2-activepapers, python2-send2trash)
(python2-cloudpickle, python2-reparser),
gnu/packages/python.scm (python2-called-python),
gnu/packages/qt.scm (python2-sip, python-pyqt-without-qtwebkit, python2-pyqt)
(python-qscintilla, python-pyqt+qscintilla),
gnu/packages/scanner.scm (sane-backends),
gnu/packages/sdl.scm (guile3.0-sdl2),
gnu/packages/selinux.scm (checkpolicy, libselinux, libsemanage, secilc)
(python-sepolgen, policycoreutils),
gnu/packages/serialization.scm (lua5.1-libmpack, lua5.2-libmpack),
gnu/packages/simulation.scm (fenics),
gnu/packages/statistics.scm (python2-statsmodels),
gnu/packages/texinfo.scm (info-reader),
gnu/packages/wxwidgets.scm (wxwidgets-gtk2, wxwidgets-gtk2-3.1),
gnu/packages/xml.scm (xmlsec-nss),
gnu/packages/xorg.scm (uim-gtk, uim-qt),
guix/build-system/python.scm (package-with-explicit-python)
(strip-python2-variant): Use PACKAGE/INHERIT.
2021-03-17 07:42:12 +00:00
|
|
|
(package/inherit bitshuffle
|
2019-01-15 16:42:59 +00:00
|
|
|
(name "bitshuffle-for-snappy")
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
(arguments
|
2019-01-20 21:12:10 +00:00
|
|
|
(substitute-keyword-arguments (package-arguments bitshuffle)
|
|
|
|
((#:tests? _ #f) #f)
|
|
|
|
((#:phases phases)
|
|
|
|
`(modify-phases %standard-phases
|
|
|
|
(replace 'configure
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
(with-output-to-file "Makefile"
|
|
|
|
(lambda _
|
|
|
|
(format #t "\
|
2019-01-15 16:42:59 +00:00
|
|
|
libbitshuffle.so: src/bitshuffle.o src/bitshuffle_core.o src/iochain.o lz4/lz4.o
|
|
|
|
\tgcc -O3 -ffast-math -std=c99 -o $@ -shared -fPIC $^
|
|
|
|
|
|
|
|
%.o: %.c
|
|
|
|
\tgcc -O3 -ffast-math -std=c99 -fPIC -Isrc -Ilz4 -c $< -o $@
|
|
|
|
|
|
|
|
PREFIX:=~a
|
|
|
|
LIBDIR:=$(PREFIX)/lib
|
|
|
|
INCLUDEDIR:=$(PREFIX)/include
|
|
|
|
|
|
|
|
install: libbitshuffle.so
|
|
|
|
\tinstall -dm755 $(LIBDIR)
|
|
|
|
\tinstall -dm755 $(INCLUDEDIR)
|
|
|
|
\tinstall -m755 libbitshuffle.so $(LIBDIR)
|
|
|
|
\tinstall -m644 src/bitshuffle.h $(INCLUDEDIR)
|
|
|
|
\tinstall -m644 src/bitshuffle_core.h $(INCLUDEDIR)
|
|
|
|
\tinstall -m644 src/iochain.h $(INCLUDEDIR)
|
|
|
|
\tinstall -m644 lz4/lz4.h $(INCLUDEDIR)
|
|
|
|
" (assoc-ref outputs "out"))))
|
2019-01-20 21:12:10 +00:00
|
|
|
#t))))))
|
2019-01-15 16:42:59 +00:00
|
|
|
(inputs '())
|
|
|
|
(native-inputs '())))
|
2019-06-25 08:56:34 +00:00
|
|
|
|
|
|
|
(define-public python-zipp
|
|
|
|
(package
|
|
|
|
(name "python-zipp")
|
2020-01-15 19:10:26 +00:00
|
|
|
(version "1.0.0")
|
2019-06-25 08:56:34 +00:00
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (pypi-uri "zipp" version))
|
|
|
|
(sha256
|
|
|
|
(base32
|
2020-01-15 19:10:26 +00:00
|
|
|
"0v3qayhqv7vyzydpydwcp51bqciw8p2ajddw68x5k8zppc0vx3yk"))))
|
2019-06-25 08:56:34 +00:00
|
|
|
(build-system python-build-system)
|
|
|
|
(propagated-inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
(list python-more-itertools))
|
2020-01-15 19:10:26 +00:00
|
|
|
(native-inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
(list python-setuptools-scm))
|
2019-06-25 08:56:34 +00:00
|
|
|
(home-page "https://github.com/jaraco/zipp")
|
|
|
|
(synopsis
|
|
|
|
"Backport of pathlib-compatible object wrapper for zip files")
|
|
|
|
(description
|
|
|
|
"This package provides a @code{pathlib}-compatible @code{Zipfile} object
|
|
|
|
wrapper. It provides a backport of the @code{Path} object.")
|
|
|
|
(license license:expat)))
|
2020-01-02 23:11:48 +00:00
|
|
|
|
2021-12-21 05:03:46 +00:00
|
|
|
(define-public python-zopfli
|
|
|
|
(package
|
|
|
|
(name "python-zopfli")
|
2023-04-12 14:53:52 +00:00
|
|
|
(version "0.2.2")
|
2021-12-21 05:03:46 +00:00
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (pypi-uri "zopfli" version ".zip"))
|
|
|
|
(sha256
|
2023-04-12 14:53:52 +00:00
|
|
|
(base32 "1z1akqx3fjnwa75insch9p08hafikqdvqkj6mxv1k6fr81sxnj9d"))))
|
2021-12-21 05:03:46 +00:00
|
|
|
(build-system python-build-system)
|
|
|
|
(arguments
|
|
|
|
(list
|
|
|
|
#:phases #~(modify-phases %standard-phases
|
|
|
|
(add-after 'unpack 'use-system-zopfli
|
|
|
|
(lambda _
|
|
|
|
(setenv "USE_SYSTEM_ZOPFLI" "1")))
|
|
|
|
(add-before 'build 'set-version
|
|
|
|
(lambda _
|
|
|
|
(setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version)))
|
|
|
|
(replace 'check
|
|
|
|
(lambda* (#:key tests? #:allow-other-keys)
|
|
|
|
(when tests?
|
2022-09-05 15:50:23 +00:00
|
|
|
(invoke "pytest" "-vv")))))))
|
|
|
|
(native-inputs (list unzip python-pytest python-setuptools-scm))
|
2021-12-21 05:03:46 +00:00
|
|
|
(inputs (list zopfli))
|
|
|
|
(home-page "https://github.com/fonttools/py-zopfli")
|
|
|
|
(synopsis "Python bindings for Zopfli")
|
|
|
|
(description "@code{pyzopfli} is a straight forward wrapper around the
|
|
|
|
@code{ZlibCompress} method of the the @code{zopfli} library.")
|
|
|
|
(license license:asl2.0)))
|
|
|
|
|
2020-01-02 23:11:48 +00:00
|
|
|
(define-public python-zstandard
|
|
|
|
(package
|
2020-01-03 11:41:31 +00:00
|
|
|
(name "python-zstandard")
|
2022-11-23 12:02:31 +00:00
|
|
|
(version "0.19.0")
|
2020-01-03 11:41:31 +00:00
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (pypi-uri "zstandard" version))
|
|
|
|
(sha256
|
2022-11-23 12:02:31 +00:00
|
|
|
(base32 "0qvqhs121spk7yc1l20samflxx47waxv3xm55ksxpn1djk6jzl9i"))))
|
2020-01-03 11:41:31 +00:00
|
|
|
(build-system python-build-system)
|
2022-11-23 12:02:31 +00:00
|
|
|
(propagated-inputs
|
|
|
|
(list python-cffi))
|
2020-01-03 11:41:31 +00:00
|
|
|
(native-inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
(list python-hypothesis))
|
2020-01-03 11:41:31 +00:00
|
|
|
(home-page "https://github.com/indygreg/python-zstandard")
|
|
|
|
(synopsis "Zstandard bindings for Python")
|
|
|
|
(description "This project provides Python bindings for interfacing with
|
|
|
|
the Zstandard compression library. A C extension and CFFI interface are
|
|
|
|
provided.")
|
|
|
|
(license license:bsd-3)))
|
2021-03-10 07:32:25 +00:00
|
|
|
|
|
|
|
(define-public python-pyzstd
|
|
|
|
(package
|
|
|
|
(name "python-pyzstd")
|
2023-07-16 00:00:01 +00:00
|
|
|
(version "0.15.9")
|
2021-03-10 07:32:25 +00:00
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (pypi-uri "pyzstd" version))
|
|
|
|
(sha256
|
2023-07-16 00:00:07 +00:00
|
|
|
(base32 "1iycfmif15v1jhv0gsza1hyd1hn3sz0vn9s1y79abzv8axndxzfb"))
|
|
|
|
(modules '((guix build utils)))
|
|
|
|
(snippet
|
|
|
|
'(begin
|
|
|
|
;; Remove a bundled copy of the zstd sources.
|
|
|
|
(delete-file-recursively "zstd")))))
|
2021-03-10 07:32:25 +00:00
|
|
|
(build-system python-build-system)
|
2023-07-16 00:00:07 +00:00
|
|
|
(arguments
|
|
|
|
(list
|
|
|
|
#: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)))))))
|
|
|
|
(inputs (list `(,zstd "lib")))
|
2021-03-10 07:32:25 +00:00
|
|
|
(home-page "https://github.com/animalize/pyzstd")
|
|
|
|
(synopsis "Zstandard bindings for Python")
|
2023-07-16 00:00:01 +00:00
|
|
|
(description "This package provides Python bindings to the Zstandard (zstd)
|
2021-03-10 07:32:25 +00:00
|
|
|
compression library. The API is similar to Python's bz2/lzma/zlib module.")
|
|
|
|
(license license:bsd-3)))
|