2019-01-15 17:42:59 +01:00
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
|
|
|
;;; Copyright © 2017, 2018 Tobias Geerinckx-Rice <me@tobias.gr>
|
2019-06-25 10:56:34 +02:00
|
|
|
;;; Copyright © 2017, 2019 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 13:05:45 +02:00
|
|
|
;;; Copyright © 2017 Nikita <nikita@n0.is>
|
2019-01-15 17:42:59 +01:00
|
|
|
;;; Copyright © 2017 Julien Lepiller <julien@lepiller.eu>
|
2020-07-21 09:49:31 +02:00
|
|
|
;;; Copyright © 2018, 2019, 2020 Efraim Flashner <efraim@flashner.co.il>
|
2020-01-03 00:13:15 +01:00
|
|
|
;;; Copyright © 2020 Nicolas Goaziou <mail@nicolasgoaziou.fr>
|
2020-01-16 00:45:53 +01:00
|
|
|
;;; Copyright © 2020 Marius Bakke <mbakke@fastmail.com>
|
2019-01-15 17:42:59 +01: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)
|
|
|
|
#:use-module (guix build-system gnu)
|
|
|
|
#:use-module (guix build-system python)
|
|
|
|
#:use-module (gnu packages)
|
|
|
|
#:use-module (gnu packages compression)
|
|
|
|
#:use-module (gnu packages check)
|
|
|
|
#:use-module (gnu packages maths)
|
2020-02-01 15:51:29 +01:00
|
|
|
#:use-module (gnu packages pkg-config)
|
2019-01-15 17:42:59 +01:00
|
|
|
#:use-module (gnu packages python)
|
2019-06-25 10:56:34 +02:00
|
|
|
#:use-module (gnu packages python-xyz)
|
|
|
|
#:use-module (gnu packages sphinx))
|
2019-01-15 17:42:59 +01:00
|
|
|
|
|
|
|
(define-public python-lzo
|
|
|
|
(package
|
|
|
|
(name "python-lzo")
|
|
|
|
(version "1.12")
|
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (pypi-uri "python-lzo" version))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"0iakqgd51n1cd7r3lpdylm2rgbmd16y74cra9kcapwg84mlf9a4p"))))
|
|
|
|
(build-system python-build-system)
|
|
|
|
(arguments
|
|
|
|
`(#: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('"
|
|
|
|
(assoc-ref %build-inputs "lzo")
|
|
|
|
"/include/lzo"
|
|
|
|
"')")))
|
|
|
|
#t)))))
|
|
|
|
(inputs
|
|
|
|
`(("lzo" ,lzo)))
|
|
|
|
(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 python2-lzo
|
|
|
|
(package-with-python2 python-lzo))
|
|
|
|
|
|
|
|
(define-public python-lz4
|
|
|
|
(package
|
|
|
|
(name "python-lz4")
|
|
|
|
(version "0.10.1")
|
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (pypi-uri "lz4" version))
|
|
|
|
(sha256
|
|
|
|
(base32
|
2020-02-01 15:51:29 +01:00
|
|
|
"0ghv1xbaq693kgww1x9c22bplz479ls9szjsaa4ig778ls834hm0"))
|
|
|
|
(modules '((guix build utils)))
|
|
|
|
(snippet
|
|
|
|
'(begin
|
|
|
|
;; Remove bundled copy of lz4.
|
|
|
|
(delete-file-recursively "lz4libs")
|
|
|
|
#t))))
|
2019-01-15 17:42:59 +01:00
|
|
|
(build-system python-build-system)
|
|
|
|
(native-inputs
|
2020-02-01 15:51:29 +01:00
|
|
|
`(("pkg-config" ,pkg-config)
|
|
|
|
("python-nose" ,python-nose)
|
2019-01-15 17:42:59 +01:00
|
|
|
("python-setuptools-scm" ,python-setuptools-scm)))
|
2020-02-01 15:51:29 +01:00
|
|
|
(inputs
|
|
|
|
`(("lz4" ,lz4)))
|
2019-01-15 17:42:59 +01: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 python2-lz4
|
|
|
|
(package-with-python2 python-lz4))
|
|
|
|
|
|
|
|
(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
|
|
|
|
`(("python-future" ,python-future)))
|
|
|
|
(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 python2-lzstring
|
|
|
|
(package-with-python2 python-lzstring))
|
|
|
|
|
2020-07-21 09:49:31 +02:00
|
|
|
(define-public python-brotli
|
|
|
|
(package
|
|
|
|
(name "python-brotli")
|
2020-11-26 18:38:25 +01:00
|
|
|
(version "1.0.9")
|
2020-07-21 09:49:31 +02:00
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (pypi-uri "Brotli" version ".zip"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
2020-11-26 18:38:25 +01:00
|
|
|
"0f4433s4wv9masc303kkb1s0a09x81xwr8pdvj0kyxzdl05826sd"))))
|
2020-07-21 09:49:31 +02:00
|
|
|
(build-system python-build-system)
|
|
|
|
(native-inputs
|
|
|
|
`(("unzip" ,unzip)))
|
|
|
|
(home-page "https://github.com/google/brotli")
|
|
|
|
(synopsis "Python bindings for the Brotli compression library")
|
|
|
|
(description
|
|
|
|
"This package provides python bindings for the Brotli compression library.")
|
|
|
|
(license license:asl2.0)))
|
|
|
|
|
2019-01-15 17:42:59 +01:00
|
|
|
(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
|
|
|
|
(package
|
|
|
|
(inherit bitshuffle)
|
|
|
|
(name "bitshuffle-for-snappy")
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
(arguments
|
2019-01-20 22:12:10 +01: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 17:42:59 +01: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 22:12:10 +01:00
|
|
|
#t))))))
|
2019-01-15 17:42:59 +01:00
|
|
|
(inputs '())
|
|
|
|
(native-inputs '())))
|
2019-06-25 10:56:34 +02:00
|
|
|
|
|
|
|
(define-public python-zipp
|
|
|
|
(package
|
|
|
|
(name "python-zipp")
|
2020-01-15 20:10:26 +01:00
|
|
|
(version "1.0.0")
|
2019-06-25 10:56:34 +02:00
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (pypi-uri "zipp" version))
|
|
|
|
(sha256
|
|
|
|
(base32
|
2020-01-15 20:10:26 +01:00
|
|
|
"0v3qayhqv7vyzydpydwcp51bqciw8p2ajddw68x5k8zppc0vx3yk"))))
|
2019-06-25 10:56:34 +02:00
|
|
|
(build-system python-build-system)
|
|
|
|
(propagated-inputs
|
2020-01-15 20:10:26 +01:00
|
|
|
`(("python-more-itertools" ,python-more-itertools)))
|
|
|
|
(native-inputs
|
2020-01-15 21:42:15 +01:00
|
|
|
`(("python-setuptools-scm" ,python-setuptools-scm)))
|
2019-06-25 10:56:34 +02: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.")
|
2020-01-15 21:42:15 +01:00
|
|
|
(properties `((python2-variant . ,(delay python2-zipp))))
|
2019-06-25 10:56:34 +02:00
|
|
|
(license license:expat)))
|
2020-01-03 00:11:48 +01:00
|
|
|
|
2020-01-15 20:12:09 +01:00
|
|
|
(define-public python2-zipp
|
2020-01-15 21:42:15 +01:00
|
|
|
(let ((base (package-with-python2 (strip-python2-variant python-zipp))))
|
|
|
|
(package/inherit
|
|
|
|
base
|
|
|
|
(native-inputs
|
|
|
|
`(("python-contextlib2" ,python2-contextlib2)
|
|
|
|
("python-pathlib2" ,python2-pathlib2)
|
|
|
|
("python-unittest2" ,python2-unittest2)
|
|
|
|
,@(package-native-inputs base))))))
|
2020-01-15 20:12:09 +01:00
|
|
|
|
2020-01-16 00:45:53 +01:00
|
|
|
;; This package is used to bootstrap pytest, via importlib-metadata.
|
|
|
|
(define-public python2-zipp-bootstrap
|
|
|
|
(hidden-package
|
|
|
|
(package/inherit
|
|
|
|
python2-zipp
|
2020-06-24 07:19:43 +02:00
|
|
|
(name "python2-zipp-bootstrap")
|
2020-01-16 00:45:53 +01:00
|
|
|
(arguments
|
|
|
|
`(#:tests? #f
|
|
|
|
,@(package-arguments python2-zipp)))
|
|
|
|
(native-inputs
|
|
|
|
`(("python-setuptools-scm" ,python2-setuptools-scm))))))
|
|
|
|
|
2020-01-03 00:11:48 +01:00
|
|
|
(define-public python-zstandard
|
|
|
|
(package
|
2020-01-03 12:41:31 +01:00
|
|
|
(name "python-zstandard")
|
|
|
|
(version "0.13.0")
|
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (pypi-uri "zstandard" version))
|
|
|
|
(sha256
|
2020-01-03 00:11:48 +01:00
|
|
|
(base32 "0q9msi00s93iqm8vzd839r7yc51gz54z90h5bckqyjdxa6vxijz5"))))
|
2020-01-03 12:41:31 +01:00
|
|
|
(build-system python-build-system)
|
|
|
|
(native-inputs
|
|
|
|
`(("python-hypothesis" ,python-hypothesis)))
|
|
|
|
(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)))
|