From 564dcaa1fa06254aeedb0934b4f3bd1c26f9f53c Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Wed, 23 Nov 2022 22:18:20 +0200 Subject: [PATCH] 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. --- gnu/packages/python-compression.scm | 16 ++++++++++++++-- 1 file 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 ;;; Copyright © 2017 Nikita ;;; Copyright © 2017 Julien Lepiller -;;; Copyright © 2018, 2019, 2020 Efraim Flashner +;;; Copyright © 2018-2020, 2022 Efraim Flashner ;;; Copyright © 2020 Nicolas Goaziou ;;; Copyright © 2020, 2022 Marius Bakke ;;; Copyright © 2021 Brendan Tildesley @@ -134,9 +134,21 @@ (define-public python-brotlicffi (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