summary refs log tree commit diff
path: root/gnu
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2022-11-23 22:18:20 +0200
committerEfraim Flashner <efraim@flashner.co.il>2022-11-24 22:22:32 +0200
commit564dcaa1fa06254aeedb0934b4f3bd1c26f9f53c (patch)
tree0ab26175835149d676523ccd0635527cfba25c94 /gnu
parent4c9e94a453fc377fc9f2344d9644df422a0ed315 (diff)
downloadguix-564dcaa1fa06254aeedb0934b4f3bd1c26f9f53c.tar.gz
gnu: python-brotlicffi: Unbundle brotli.
* gnu/packages/python-compression.scm (python-brotlicffi)[source]: Add
snippet to delete bundled libbrotli.
[arguments]: Add phase to configure using shared libbrotli.
[inputs]: Add brotli.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/python-compression.scm16
1 files changed, 14 insertions, 2 deletions
diff --git a/gnu/packages/python-compression.scm b/gnu/packages/python-compression.scm
index 9eef74c71b..c483d68b5f 100644
--- a/gnu/packages/python-compression.scm
+++ b/gnu/packages/python-compression.scm
@@ -3,7 +3,7 @@
 ;;; Copyright © 2017, 2019, 2021, 2022 Ricardo Wurmus <rekado@elephly.net>
 ;;; Copyright © 2017 Nikita <nikita@n0.is>
 ;;; Copyright © 2017 Julien Lepiller <julien@lepiller.eu>
-;;; Copyright © 2018, 2019, 2020 Efraim Flashner <efraim@flashner.co.il>
+;;; Copyright © 2018-2020, 2022 Efraim Flashner <efraim@flashner.co.il>
 ;;; Copyright © 2020 Nicolas Goaziou <mail@nicolasgoaziou.fr>
 ;;; Copyright © 2020, 2022 Marius Bakke <marius@gnu.org>
 ;;; Copyright © 2021 Brendan Tildesley <mail@brendan.scot>
@@ -134,9 +134,21 @@ Jump conversion filter by CFFI for Python.")
               (uri (pypi-uri "brotlicffi" version))
               (sha256
                (base32
-                "15kxgdiqcg0cm6h5xq3vkbhw7674673hcx3n2yicd3wx29l8l90c"))))
+                "15kxgdiqcg0cm6h5xq3vkbhw7674673hcx3n2yicd3wx29l8l90c"))
+              (snippet
+               #~(begin
+                   (use-modules (guix build utils))
+                   (delete-file-recursively "libbrotli")))))
     (build-system pyproject-build-system)
+    (arguments
+     (list
+       #:phases
+       #~(modify-phases %standard-phases
+           (add-after 'unpack 'use-shared-brotli
+             (lambda _
+               (setenv "USE_SHARED_BROTLI" "1"))))))
     (propagated-inputs (list python-cffi))
+    (inputs (list brotli))
     (home-page "https://github.com/python-hyper/brotlicffi")
     (synopsis "Python CFFI bindings to the Brotli library")
     (description "This package provides Python CFFI bindings to the Brotli