searx: 0.18.0 -> 1.0.0
This commit is contained in:
parent
7bf3b1fe95
commit
5752d0b1c1
@ -1,23 +1,21 @@
|
|||||||
{ lib, nixosTests, python3, python3Packages, fetchFromGitHub, fetchpatch }:
|
{ lib, nixosTests, python3, python3Packages, fetchFromGitHub }:
|
||||||
|
|
||||||
with python3Packages;
|
with python3Packages;
|
||||||
|
|
||||||
toPythonModule (buildPythonApplication rec {
|
toPythonModule (buildPythonApplication rec {
|
||||||
pname = "searx";
|
pname = "searx";
|
||||||
version = "0.18.0";
|
version = "1.0.0";
|
||||||
|
|
||||||
# Can not use PyPI because certain test files are missing.
|
# pypi doesn't receive updates
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "searx";
|
owner = "searx";
|
||||||
repo = "searx";
|
repo = "searx";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "0idxspvckvsd02v42h4z4wqrfkn1l8n59i91f7pc837cxya8p6hn";
|
sha256 = "0ghkx8g8jnh8yd46p4mlbjn2zm12nx27v7qflr4c8xhlgi0px0mh";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
sed -i 's/==.*$//' requirements.txt
|
sed -i 's/==.*$//' requirements.txt
|
||||||
# skip failing test
|
|
||||||
sed -i '/test_json_serial(/,+3d' tests/unit/test_standalone_searx.py
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
preBuild = ''
|
preBuild = ''
|
||||||
@ -25,16 +23,32 @@ toPythonModule (buildPythonApplication rec {
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
pyyaml lxml grequests flaskbabel flask requests
|
Babel
|
||||||
gevent speaklater Babel pytz dateutil pygments
|
certifi
|
||||||
pyasn1 pyasn1-modules ndg-httpsclient certifi pysocks
|
dateutil
|
||||||
jinja2 werkzeug
|
flask
|
||||||
|
flaskbabel
|
||||||
|
gevent
|
||||||
|
grequests
|
||||||
|
jinja2
|
||||||
|
langdetect
|
||||||
|
lxml
|
||||||
|
ndg-httpsclient
|
||||||
|
pyasn1
|
||||||
|
pyasn1-modules
|
||||||
|
pygments
|
||||||
|
pysocks
|
||||||
|
pytz
|
||||||
|
pyyaml
|
||||||
|
requests
|
||||||
|
speaklater
|
||||||
|
werkzeug
|
||||||
];
|
];
|
||||||
|
|
||||||
checkInputs = [
|
# tests try to connect to network
|
||||||
Babel mock nose2 covCore pep8 plone-testing splinter
|
doCheck = false;
|
||||||
unittest2 zope_testrunner selenium
|
|
||||||
];
|
pythonImportsCheck = [ "searx" ];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
# Create a symlink for easier access to static data
|
# Create a symlink for easier access to static data
|
||||||
|
Loading…
Reference in New Issue
Block a user