;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2022 Mathieu Othacehe ;;; ;;; 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 . (define-module (gnu compression) #:use-module (guix gexp) #:use-module (guix ui) #:use-module ((gnu packages compression) #:hide (zip)) #:use-module (srfi srfi-1) #:use-module (srfi srfi-9) #:use-module (ice-9 match) #:export (compressor compressor? compressor-name compressor-extension compressor-command %compressors lookup-compressor)) ;; Type of a compression tool. (define-record-type (compressor name extension command) compressor? (name compressor-name) ;string (e.g., "gzip") (extension compressor-extension) ;string (e.g., ".lz") (command compressor-command)) ;gexp (e.g., #~(list "/gnu/store/…/gzip" ; "-9n" )) (define %compressors ;; Available compression tools. (list (compressor "gzip" ".gz" #~(list #+(file-append gzip "/bin/gzip") "-9n")) (compressor "lzip" ".lz" #~(list #+(file-append lzip "/bin/lzip") "-9")) (compressor "xz" ".xz" #~(append (list #+(file-append xz "/bin/xz") "-e") (%xz-parallel-args))) (compressor "bzip2" ".bz2" #~(list #+(file-append bzip2 "/bin/bzip2") "-9")) (compressor "zstd" ".zst" ;; The default level 3 compresses better than gzip in a ;; fraction of the time, while the highest level 19 ;; (de)compresses more slowly and worse than xz. #~(list #+(file-append zstd "/bin/zstd") "-3")) (compressor "none" "" #f))) (define (lookup-compressor name) "Return the compressor object called NAME. Error out if it could not be found." (or (find (match-lambda (($ name*) (string=? name* name))) %compressors) (leave (G_ "~a: compressor not found~%") name))) +0100'>2023-09-27gnu: python-pyotp: Update to 2.9.0....* gnu/packages/python-crypto.scm (python-pyotp): Update to 2.9.0. Signed-off-by: Christopher Baines <mail@cbaines.net> fanquake 2023-09-22gnu: python-libnacl: Update to 2.1.0....* gnu/packages/python-crypto.scm (python-libnacl): Update to 2.1.0. [build-system]: Switch to PYPROJECT-BUILD-SYSTEM. [arguments]: Adjust hack for locating libsodium. Add custom check phase. [native-inputs]: Remove PYTHON-PYHAMCREST. Add PYTHON-POETRY-CORE. Marius Bakke 2023-09-22gnu: python-certauth: Fix test failure with newer PyOpenSSL....* gnu/packages/python-crypto.scm (python-certauth)[arguments]: New field. Marius Bakke 2023-08-24gnu: python-asn1crypto: Respect #:tests?....* gnu/packages/python-crypto.scm (python-asn1crypto)[#:phases]<check>: Honor argument #:tests?. Hilton Chain 2023-08-24gnu: python-asn1crypto: Update to 1.5.1....* gnu/packages/python-crypto.scm (python-asn1crypto): Update to 1.5.1. [description]: Adjust according to lint warning. Signed-off-by: Hilton Chain <hako@ultrarare.space> fanquake 2023-08-14gnu: python-cryptography-rust: Enable tests....* gnu/packages/python-crypto.scm (python-cryptography-rust) [arguments]: Don't skip the tests. Add a custom 'check phase. Efraim Flashner 2023-08-14gnu: python-cryptography: Update to 40.0.2....* gnu/packages/python-crypto.scm (python-cryptography): Update to 40.0.2. (python-cryptography-rust)[cargo-inputs]: Move rust-cc-1 here from cargo-development-inputs. [cargo-development-inputs]: Remove field. Efraim Flashner 2023-08-14gnu: python-cryptography-vectors: Update to 40.0.2....* gnu/packages/python-crypto.scm (python-cryptography-vectors): Update to 40.0.2. Efraim Flashner