From a5a7083f960faae90883372bafd1693019da5a8c Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 4 Oct 2025 00:44:55 +0100 Subject: [PATCH] gnu: python-xopen: Move to python-compression. * gnu/packages/python-xyz.scm (python-xopen): Move from here ... * gnu/packages/python-compression.scm: ... to here. Change-Id: Ibd5d8401fb45816855c85b0535738ce6b44d5e82 --- gnu/packages/python-compression.scm | 35 +++++++++++++++++++++++++++-- gnu/packages/python-xyz.scm | 31 ------------------------- 2 files changed, 33 insertions(+), 33 deletions(-) diff --git a/gnu/packages/python-compression.scm b/gnu/packages/python-compression.scm index 8b794481e1b55f4fd9cc0bf9d88a7e7ee00b9c80..3c1713f6f62167592c88fae951439dc0931e645b 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, 2023 Tobias Geerinckx-Rice -;;; Copyright © 2017, 2019, 2021, 2022 Ricardo Wurmus +;;; Copyright © 2016, 2017, 2018, 2023 Tobias Geerinckx-Rice +;;; Copyright © 2017, 2018, 2019, 2021, 2022, 2023 Ricardo Wurmus ;;; Copyright © 2017 Nikita ;;; Copyright © 2017 Julien Lepiller ;;; Copyright © 2018-2020, 2022, 2023 Efraim Flashner @@ -938,6 +938,37 @@ wrapper. It provides a backport of the @code{Path} object.") @code{libdeflate}.") (license license:expat))) +(define-public python-xopen + (package + (name "python-xopen") + ;; TODO: Newer versions require zlib-ng: + ;; , + ;; . + (version "1.8.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "xopen" version)) + (sha256 + (base32 "0h08wpd5zwnlzwnbbbhahbcs69kzsfbaaigqw0viq6ri8n4zrh00")))) + (build-system pyproject-build-system) + ;; tests: 343 passed, 5 skipped + (native-inputs + (list python-pytest + python-pytest-timeout + python-setuptools + python-setuptools-scm)) + (propagated-inputs + (list pigz python-isal)) + (home-page "https://github.com/marcelm/xopen/") + (synopsis "Open compressed files transparently") + (description "This module provides an @code{xopen} function that works +like Python's built-in @code{open} function, but can also deal with compressed +files. Supported compression formats are gzip, bzip2 and, xz, and are +automatically recognized by their file extensions. The focus is on being as +efficient as possible on all supported Python versions.") + (license license:expat))) + (define-public python-zipstream-ng (package (name "python-zipstream-ng") diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 3527a2c817509d4a8a91274a7aff4116656d5e92..04dc5b6e49744f30fc36d7527c045c2d6d813dc7 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -25848,37 +25848,6 @@ module is a re-implementation aiming for speed, so it can be used at runtime (rather than during a preprocessing step).") (license license:asl2.0))) -(define-public python-xopen - (package - (name "python-xopen") - ;; TODO: Newer versions require zlib-ng: - ;; , - ;; . - (version "1.8.0") - (source - (origin - (method url-fetch) - (uri (pypi-uri "xopen" version)) - (sha256 - (base32 "0h08wpd5zwnlzwnbbbhahbcs69kzsfbaaigqw0viq6ri8n4zrh00")))) - (build-system pyproject-build-system) - ;; tests: 343 passed, 5 skipped - (native-inputs - (list python-pytest - python-pytest-timeout - python-setuptools - python-setuptools-scm)) - (propagated-inputs - (list pigz python-isal)) - (home-page "https://github.com/marcelm/xopen/") - (synopsis "Open compressed files transparently") - (description "This module provides an @code{xopen} function that works -like Python's built-in @code{open} function, but can also deal with compressed -files. Supported compression formats are gzip, bzip2 and, xz, and are -automatically recognized by their file extensions. The focus is on being as -efficient as possible on all supported Python versions.") - (license license:expat))) - (define-public python-cheetah (package (name "python-cheetah")