GNU bug report logs -
#49461
[PATCH 0/2] Add Searx.
Previous Next
Reported by: Vinicius Monego <monego <at> posteo.net>
Date: Thu, 8 Jul 2021 03:55:01 UTC
Severity: normal
Tags: patch
Done: Ludovic Courtès <ludo <at> gnu.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 49461 in the body.
You can then email your comments to 49461 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
guix-patches <at> gnu.org
:
bug#49461
; Package
guix-patches
.
(Thu, 08 Jul 2021 03:55:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Vinicius Monego <monego <at> posteo.net>
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Thu, 08 Jul 2021 03:55:01 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Vinicius Monego (2):
gnu: Add python-langdetect.
gnu: Add searx.
gnu/packages/python-xyz.scm | 20 ++++++++++++++
gnu/packages/search.scm | 53 ++++++++++++++++++++++++++++++++++++-
2 files changed, 72 insertions(+), 1 deletion(-)
--
2.32.0
Information forwarded
to
guix-patches <at> gnu.org
:
bug#49461
; Package
guix-patches
.
(Thu, 08 Jul 2021 03:56:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 49461 <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/python-xyz.scm (python-langdetect): New variable.
---
gnu/packages/python-xyz.scm | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index e655b3b20e..53d116ddfa 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -10443,6 +10443,26 @@ your package is installed, via @code{pkg_resources} (part of
primary use case is APIs defined before keyword-only parameters existed.")
(license license:gpl3+)))
+(define-public python-langdetect
+ (package
+ (name "python-langdetect")
+ (version "1.0.9")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "langdetect" version))
+ (sha256
+ (base32 "1805svvb7xjm4sf1j7b6nc3409x37pd1xmabfwwjf1ldkzwgxhfb"))))
+ (build-system python-build-system)
+ (propagated-inputs
+ `(("python-six" ,python-six)))
+ (home-page "https://github.com/Mimino666/langdetect")
+ (synopsis "Language detection library")
+ (description
+ "This library is a port of Nakatani Shuyo's language-detection library
+(version from 03/03/2014) to Python.")
+ (license license:expat)))
+
(define-public python-pyasn1
(package
(name "python-pyasn1")
--
2.32.0
Information forwarded
to
guix-patches <at> gnu.org
:
bug#49461
; Package
guix-patches
.
(Thu, 08 Jul 2021 03:57:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 49461 <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/search.scm (searx): New variable.
---
gnu/packages/search.scm | 53 ++++++++++++++++++++++++++++++++++++++++-
1 file changed, 52 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/search.scm b/gnu/packages/search.scm
index 362eb0d95e..44d5b631ca 100644
--- a/gnu/packages/search.scm
+++ b/gnu/packages/search.scm
@@ -6,6 +6,7 @@
;;; Copyright © 2018, 2020, 2021 Tobias Geerinckx-Rice <me <at> tobias.gr>
;;; Copyright © 2018 Adam Massmann <massmannak <at> gmail.com>
;;; Copyright © 2020 Hartmut Goebel <h.goebel <at> crazy-compilers.com>
+;;; Copyright © 2021 Vinicius Monego <monego <at> posteo.net>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -24,7 +25,7 @@
(define-module (gnu packages search)
#:use-module ((guix licenses)
- #:select (gpl2 gpl2+ gpl3+ lgpl2.1+ bsd-3 x11 perl-license))
+ #:select (gpl2 gpl2+ gpl3+ agpl3+ lgpl2.1+ bsd-3 x11 perl-license))
#:use-module (guix packages)
#:use-module (guix download)
#:use-module (guix git-download)
@@ -43,9 +44,11 @@
#:use-module (gnu packages perl)
#:use-module (gnu packages pdf)
#:use-module (gnu packages python)
+ #:use-module (gnu packages python-crypto)
#:use-module (gnu packages python-web)
#:use-module (gnu packages python-xyz)
#:use-module (gnu packages sphinx)
+ #:use-module (gnu packages time)
#:use-module (gnu packages web)
#:use-module (gnu packages xdisorg)
#:use-module (gnu packages xml))
@@ -207,6 +210,54 @@ files and directories.")
command line tool for interacting with libtocc.")
(license gpl3+)))
+(define-public searx
+ (package
+ (name "searx")
+ (version "1.0.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/searx/searx")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0ghkx8g8jnh8yd46p4mlbjn2zm12nx27v7qflr4c8xhlgi0px0mh"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:tests? #f ;what tests do is make online requests to each engine
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'relax-requirements
+ (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.
+ (substitute* "requirements.txt"
+ (("flask-babel==2.0.0") "flask-babel>=1.0.0")
+ (("jinja2==2.11.3") "jinja2>=2.11.2")
+ (("lxml==4.6.3") "lxml>=4.4.2")
+ (("pygments==2.8.0") "pygments>=2.7.3")
+ (("requests\\[socks\\]==2.25.1") "requests>=2.25")
+ (("==") ">=")))))))
+ (propagated-inputs
+ `(("python-babel" ,python-babel)
+ ("python-certifi" ,python-certifi)
+ ("python-dateutil" ,python-dateutil)
+ ("python-flask" ,python-flask)
+ ("python-flask-babel" ,python-flask-babel)
+ ("python-idna" ,python-idna)
+ ("python-jinja2" ,python-jinja2)
+ ("python-langdetect" ,python-langdetect)
+ ("python-lxml" ,python-lxml)
+ ("python-pygments" ,python-pygments)
+ ("python-pyyaml" ,python-pyyaml)
+ ("python-requests" ,python-requests)))
+ (home-page "https://searx.github.io/searx/")
+ (synopsis "Privacy-respecting metasearch engine")
+ (description "Searx is a privacy-respecting, hackable metasearch engine.")
+ (license agpl3+)))
+
(define-public bool
(package
(name "bool")
--
2.32.0
Information forwarded
to
guix-patches <at> gnu.org
:
bug#49461
; Package
guix-patches
.
(Thu, 08 Jul 2021 21:02:01 GMT)
Full text and
rfc822 format available.
Message #14 received at 49461 <at> debbugs.gnu.org (full text, mbox):
Hi Vinicius,
Thank you for packaging this!
Searx is a package I've been wanting in guix also.
Are you planning to add a service also?
If you'd like to work on a searx-service-type together just let me know.
Some inspiration:
https://github.com/NixOS/nixpkgs/blob/nixos-21.05/nixos/modules/services/networking/searx.nix
all best,
jgart
Reply sent
to
Ludovic Courtès <ludo <at> gnu.org>
:
You have taken responsibility.
(Mon, 19 Jul 2021 18:00:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Vinicius Monego <monego <at> posteo.net>
:
bug acknowledged by developer.
(Mon, 19 Jul 2021 18:00:02 GMT)
Full text and
rfc822 format available.
Message #19 received at 49461-done <at> debbugs.gnu.org (full text, mbox):
Vinicius Monego <monego <at> posteo.net> skribis:
> gnu: Add python-langdetect.
> gnu: Add searx.
Applied, thanks!
It’d be great if you could expound the description of Searx, and I agree
with jgart: a service would be sweet. :-)
Ludo’.
Information forwarded
to
guix-patches <at> gnu.org
:
bug#49461
; Package
guix-patches
.
(Mon, 19 Jul 2021 21:33:02 GMT)
Full text and
rfc822 format available.
Message #22 received at 49461-done <at> debbugs.gnu.org (full text, mbox):
Hi jgart,
> Are you planning to add a service also?
A Shepherd service? It was not in the plan. I have only used Guix as a
foreign package manager so far. Unless the service can be tested
without conflicting with the host system, then it will be difficult for
me.
Information forwarded
to
guix-patches <at> gnu.org
:
bug#49461
; Package
guix-patches
.
(Fri, 23 Jul 2021 09:01:02 GMT)
Full text and
rfc822 format available.
Message #25 received at 49461-done <at> debbugs.gnu.org (full text, mbox):
Hi Vinicius,
Vinicius Monego <monego <at> posteo.net> skribis:
>> Are you planning to add a service also?
>
> A Shepherd service? It was not in the plan. I have only used Guix as a
> foreign package manager so far. Unless the service can be tested
> without conflicting with the host system, then it will be difficult for
> me.
Yes, you can test it with ‘guix system vm’ (and run a system test with
“make check-system”¹) even on a foreign distro.
Now, I don’t mean to impose that on you. :-)
Thanks,
Ludo’.
¹ https://guix.gnu.org/manual/en/html_node/Running-the-Test-Suite.html
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Fri, 20 Aug 2021 11:24:06 GMT)
Full text and
rfc822 format available.
This bug report was last modified 2 years and 254 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.