mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 15:11:25 +00:00
searx: 0.11.0 -> 0.12.0
This commit is contained in:
parent
fac48cca7d
commit
c217f48c35
@ -33,8 +33,8 @@ in
|
||||
|
||||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.pythonPackages.searx;
|
||||
defaultText = "pkgs.pythonPackages.searx";
|
||||
default = pkgs.searx;
|
||||
defaultText = "pkgs.searx";
|
||||
description = "searx package to use.";
|
||||
};
|
||||
|
||||
|
34
pkgs/servers/web-apps/searx/default.nix
Normal file
34
pkgs/servers/web-apps/searx/default.nix
Normal file
@ -0,0 +1,34 @@
|
||||
{ stdenv, pythonPackages, fetchFromGitHub }:
|
||||
|
||||
pythonPackages.buildPythonApplication rec {
|
||||
name = "searx-${version}";
|
||||
version = "0.12.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "asciimoo";
|
||||
repo = "searx";
|
||||
rev = "v${version}";
|
||||
sha256 = "196lk8dpv8fsjgmwlqik6j6rabvfid41fir6lzqy03hv7ydcw1k0";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace requirements.txt \
|
||||
--replace 'certifi==2017.1.23' 'certifi' \
|
||||
--replace 'lxml==3.7.3' 'lxml' \
|
||||
--replace 'pyopenssl==16.2.0' 'pyopenssl' \
|
||||
--replace 'pygments==2.1.3' 'pygments>=2.1,<3.0'
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = with pythonPackages; [
|
||||
pyyaml lxml grequests flaskbabel flask requests
|
||||
gevent speaklater Babel pytz dateutil pygments
|
||||
pyasn1 pyasn1-modules ndg-httpsclient certifi pysocks
|
||||
];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://github.com/asciimoo/searx;
|
||||
description = "A privacy-respecting, hackable metasearch engine";
|
||||
license = licenses.agpl3Plus;
|
||||
maintainers = with maintainers; [ matejc fpletz profpatsch ];
|
||||
};
|
||||
}
|
@ -11580,6 +11580,8 @@ with pkgs;
|
||||
|
||||
tt-rss = callPackage ../servers/tt-rss { };
|
||||
|
||||
searx = callPackages ../servers/web-apps/searx { };
|
||||
|
||||
selfoss = callPackage ../servers/web-apps/selfoss { };
|
||||
|
||||
shaarli = callPackage ../servers/web-apps/shaarli { };
|
||||
|
@ -26379,42 +26379,6 @@ EOF
|
||||
};
|
||||
};
|
||||
|
||||
searx = buildPythonPackage rec {
|
||||
name = "searx-${version}";
|
||||
version = "0.11.0";
|
||||
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "asciimoo";
|
||||
repo = "searx";
|
||||
rev = "v${version}";
|
||||
sha256 = "1m6q7yd45lfk19yp30x1jmisff6npa1y348wqc9ixa3ywvb28ky8";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace requirements.txt \
|
||||
--replace 'certifi==2016.9.26' 'certifi' \
|
||||
--replace 'pyyaml==3.11' 'pyyaml' \
|
||||
--replace 'lxml==3.7.1' 'lxml' \
|
||||
--replace 'pyopenssl==16.2.0' 'pyopenssl' \
|
||||
--replace 'requests[socks]==2.12.4' 'requests[socks]' \
|
||||
--replace 'pygments==2.1.3' 'pygments>=2.1,<3.0' \
|
||||
--replace 'python-dateutil==2.5.3' 'python-dateutil>=2.5,<3.0'
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = with self; [
|
||||
pyyaml lxml grequests flaskbabel flask requests
|
||||
gevent speaklater Babel pytz dateutil pygments
|
||||
pyasn1 pyasn1-modules ndg-httpsclient certifi pysocks
|
||||
];
|
||||
|
||||
meta = {
|
||||
homepage = https://github.com/asciimoo/searx;
|
||||
description = "A privacy-respecting, hackable metasearch engine";
|
||||
license = licenses.agpl3Plus;
|
||||
maintainers = with maintainers; [ matejc fpletz profpatsch ];
|
||||
};
|
||||
};
|
||||
|
||||
rpdb = buildPythonPackage rec {
|
||||
name = "rpdb-0.1.5";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user