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