Archived
1
0
Fork 0

gnu: searx: Fix build.

* gnu/packages/search.scm (searx)[arguments]<#:phases>: Simplify
relax-requirements phase for updated dependencies. Add phase to allow sanity
check to pass.

Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
This commit is contained in:
kiasoc5 2022-02-07 10:31:13 -05:00 committed by Nicolas Goaziou
parent 28e40fc369
commit 1ef73d5bea
No known key found for this signature in database
GPG key ID: DA00B4F048E92F2D

View file

@ -243,16 +243,15 @@ command line tool for interacting with libtocc.")
(modify-phases %standard-phases (modify-phases %standard-phases
(add-after 'unpack 'relax-requirements (add-after 'unpack 'relax-requirements
(lambda _ (lambda _
;; These packages are outdated in Guix at the time of packaging.
;; When they are updated, remove corresponding substitutions.
;; Tests can run after build with 'searx-checker' tool in /bin. ;; Tests can run after build with 'searx-checker' tool in /bin.
;; allow using a higher dependency version
(substitute* "requirements.txt" (substitute* "requirements.txt"
(("flask-babel==2.0.0") "flask-babel>=1.0.0") (("==") ">="))))
(("jinja2==2.11.3") "jinja2>=2.11.2") (add-before 'sanity-check 'set-debug
(("lxml==4.6.3") "lxml>=4.4.2") (lambda _
(("pygments==2.8.0") "pygments>=2.7.3") ;; the user will need to change the secret key
(("requests\\[socks\\]==2.25.1") "requests>=2.25") ;; https://github.com/searx/searx/issues/2278
(("==") ">="))))))) (setenv "SEARX_DEBUG" "1"))))))
(propagated-inputs (propagated-inputs
(list python-babel (list python-babel
python-certifi python-certifi