summaryrefslogtreecommitdiff
path: root/gnu/packages/python-compression.scm
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2025-07-31 20:56:29 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-09-25 09:35:50 +0100
commit25565cb637de74cd7eaca88c9cd89d91748a67e6 (patch)
tree265c81b32ecce2de219f75e04bbc3061ae20cdf9 /gnu/packages/python-compression.scm
parente14625640176b2a3aae0d939ac0a5cbb94512ed4 (diff)
gnu: python-brotli: Move to python-compression and switch to pyproject.
Fixes gnu/gnu#1730 python-brotli does not benefit from being inherited from brotli, it's built from scratch, this change moves it to python-compression as a stand along package, a collection of Python bindings and swap build system to pyproject. * gnu/packages/compression.scm (python-brotli, python-google-brotli): Move from here ... * gnu/packages/python-compression.scm: ... to here. * gnu/packages/django.scm: Add python-compression module. * gnu/packages/fonts.scm: Likewise. * gnu/packages/gnome.scm: Likewise. * gnu/packages/video.scm: Likewise. Change-Id: I592d84321893e5967181fd48d3037246c3cd4796
Diffstat (limited to 'gnu/packages/python-compression.scm')
-rw-r--r--gnu/packages/python-compression.scm34
1 files changed, 34 insertions, 0 deletions
diff --git a/gnu/packages/python-compression.scm b/gnu/packages/python-compression.scm
index d3f8bdd09bf..f00594e2c2b 100644
--- a/gnu/packages/python-compression.scm
+++ b/gnu/packages/python-compression.scm
@@ -34,6 +34,7 @@
34 #:use-module (guix utils) 34 #:use-module (guix utils)
35 #:use-module (guix packages) 35 #:use-module (guix packages)
36 #:use-module (guix download) 36 #:use-module (guix download)
37 #:use-module (guix git-download)
37 #:use-module (guix gexp) 38 #:use-module (guix gexp)
38 #:use-module (guix build-system cargo) 39 #:use-module (guix build-system cargo)
39 #:use-module (guix build-system gnu) 40 #:use-module (guix build-system gnu)
@@ -150,6 +151,39 @@ Python-Blosc2 also reproduces the API of Python-Blosc and is meant to be able
150to access its data, so it can be used as a drop-in replacement.") 151to access its data, so it can be used as a drop-in replacement.")
151 (license license:bsd-3))) 152 (license license:bsd-3)))
152 153
154(define-public python-brotli
155 (package
156 (name "python-brotli")
157 (version "1.0.9")
158 (source
159 (origin
160 (method git-fetch)
161 (uri (git-reference
162 (url "https://github.com/google/brotli")
163 (commit (string-append "v" version))))
164 (file-name (git-file-name name version))
165 (sha256
166 (base32 "1fikasxf7r2dwlk8mv8w7nmjkn0jw5ic31ky3mvpkdzwgd4xfndl"))
167 (modules '((guix build utils)))
168 (snippet
169 #~(begin
170 ;; Cherry-picked from upstream since the latest release
171 ;; https://github.com/google/brotli/commit/09b0992b6acb7faa6fd3b23f9bc036ea117230fc
172 (substitute* (find-files "scripts" "^lib.*pc\\.in")
173 (("-R\\$\\{libdir\\} ") ""))))))
174 (build-system pyproject-build-system)
175 (native-inputs
176 (list python-pytest
177 python-setuptools))
178 (home-page "https://github.com/google/brotli")
179 (synopsis "Python interface to Brotli")
180 (description "This package provides a Python interface to the @code{brotli}
181package, an implementation of the Brotli lossless compression algorithm.")
182 (license license:expat)))
183
184(define-public python-google-brotli
185 (deprecated-package "python-google-brotli" python-brotli))
186
153(define-public python-multivolumefile 187(define-public python-multivolumefile
154 (package 188 (package
155 (name "python-multivolumefile") 189 (name "python-multivolumefile")