This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

superconfig / 5pkgs / searx / default.nix
1.5 kB 83 lines
1{ 2 lib, 3 nixosTests, 4 python3, 5 python3Packages, 6 fetchFromGitHub, 7 fetchpatch, 8}: 9 10with python3Packages; 11 12toPythonModule (buildPythonApplication rec { 13 pname = "searx"; 14 version = "1.0.0"; 15 16 # Can not use PyPI because certain test files are missing. 17 src = fetchFromGitHub { 18 owner = "searx"; 19 repo = "searx"; 20 rev = "v${version}"; 21 sha256 = "0ghkx8g8jnh8yd46p4mlbjn2zm12nx27v7qflr4c8xhlgi0px0mh"; 22 }; 23 24 postPatch = '' 25 sed -i 's/==.*$//' requirements.txt 26 ''; 27 28 preBuild = '' 29 export SEARX_DEBUG="true"; 30 ''; 31 32 propagatedBuildInputs = [ 33 Babel 34 certifi 35 dateutil 36 flask 37 flaskbabel 38 gevent 39 grequests 40 jinja2 41 langdetect 42 lxml 43 ndg-httpsclient 44 pyasn1 45 pyasn1-modules 46 pygments 47 pysocks 48 pytz 49 pyyaml 50 requests 51 speaklater 52 werkzeug 53 ]; 54 55 # tests try to connect to network 56 doCheck = false; 57 # checkInputs = [ 58 # Babel mock nose2 covCore pep8 plone-testing splinter 59 # unittest2 zope_testrunner selenium 60 # ]; 61 62 postInstall = '' 63 # Create a symlink for easier access to static data 64 mkdir -p $out/share 65 ln -s ../${python3.sitePackages}/searx/static $out/share/ 66 ''; 67 68 passthru.tests = { 69 inherit (nixosTests) searx; 70 }; 71 72 meta = with lib; { 73 homepage = "https://github.com/searx/searx"; 74 description = "A privacy-respecting, hackable metasearch engine"; 75 license = licenses.agpl3Plus; 76 maintainers = with maintainers; [ 77 matejc 78 fpletz 79 globin 80 danielfullmer 81 ]; 82 }; 83})