From ddea65d8f540bf3cba660e75ed0ce4f98e6e13a2 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Wed, 15 Dec 2021 14:40:16 +0100 Subject: gnu: Add python-isal. * gnu/packages/python-compression.scm (python-isal): New variable. --- gnu/packages/python-compression.scm | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) (limited to 'gnu/packages/python-compression.scm') diff --git a/gnu/packages/python-compression.scm b/gnu/packages/python-compression.scm index 641cd595a0..afb2caf13b 100644 --- a/gnu/packages/python-compression.scm +++ b/gnu/packages/python-compression.scm @@ -1,6 +1,6 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2017, 2018 Tobias Geerinckx-Rice -;;; Copyright © 2017, 2019 Ricardo Wurmus +;;; Copyright © 2017, 2019, 2021 Ricardo Wurmus ;;; Copyright © 2017 Nikita ;;; Copyright © 2017 Julien Lepiller ;;; Copyright © 2018, 2019, 2020 Efraim Flashner @@ -94,6 +94,35 @@ were a single file.") Jump conversion filter by CFFI for Python.") (license license:lgpl2.1+))) +(define-public python-isal + (package + (name "python-isal") + (version "0.11.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "isal" version)) + (sha256 + (base32 "1bxj7r24p974pqfgym485s90ydhzji9q7zyfg3sf8fycm9ya01wd")) + ;; Remove bundles isa-l source code + (modules '((guix build utils))) + (snippet + '(delete-file-recursively "src/isal/isa-l")))) + (build-system python-build-system) + (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))) + (define-public python-ppmd-cffi (package (name "python-ppmd-cffi") -- cgit 1.4.1