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 d3f8bdd09b..f00594e2c2 100644
--- a/gnu/packages/python-compression.scm
+++ b/gnu/packages/python-compression.scm
@@ -34,6 +34,7 @@
#:use-module (guix utils)
#:use-module (guix packages)
#:use-module (guix download)
+ #:use-module (guix git-download)
#:use-module (guix gexp)
#:use-module (guix build-system cargo)
#: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
to access its data, so it can be used as a drop-in replacement.")
(license license:bsd-3)))
+(define-public python-brotli
+ (package
+ (name "python-brotli")
+ (version "1.0.9")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/google/brotli")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1fikasxf7r2dwlk8mv8w7nmjkn0jw5ic31ky3mvpkdzwgd4xfndl"))
+ (modules '((guix build utils)))
+ (snippet
+ #~(begin
+ ;; Cherry-picked from upstream since the latest release
+ ;; https://github.com/google/brotli/commit/09b0992b6acb7faa6fd3b23f9bc036ea117230fc
+ (substitute* (find-files "scripts" "^lib.*pc\\.in")
+ (("-R\\$\\{libdir\\} ") ""))))))
+ (build-system pyproject-build-system)
+ (native-inputs
+ (list python-pytest
+ python-setuptools))
+ (home-page "https://github.com/google/brotli")
+ (synopsis "Python interface to Brotli")
+ (description "This package provides a Python interface to the @code{brotli}
+package, an implementation of the Brotli lossless compression algorithm.")
+ (license license:expat)))
+
+(define-public python-google-brotli
+ (deprecated-package "python-google-brotli" python-brotli))
+
(define-public python-multivolumefile
(package
(name "python-multivolumefile")