Merge pull request #216335 from SuperSandro2000/searxng-babel


authored by

Sandro and committed by
GitHub
e1ccff27 4a22c3e2

+42 -5
+35
pkgs/development/python-modules/fasttext-predict/default.nix
··· 1 + { lib 2 + , stdenv 3 + , buildPythonPackage 4 + , fetchPypi 5 + , pybind11 6 + }: 7 + 8 + buildPythonPackage rec { 9 + pname = "fasttext-predict"; 10 + version = "0.9.2.1"; 11 + format = "setuptools"; 12 + 13 + src = fetchPypi { 14 + inherit pname version; 15 + sha256 = "sha256-iSCt54tqBmNfrcntDFRXb550607Zr1mMCO2PC1ZbVQw="; 16 + }; 17 + 18 + nativeBuildInputs = [ 19 + pybind11 20 + ]; 21 + 22 + # tests are removed from fork 23 + doCheck = false; 24 + 25 + pythonImportsCheck = [ "fasttext" ]; 26 + 27 + meta = with lib; { 28 + description = "fasttext with wheels and no external dependency, but only the predict method (<1MB)"; 29 + homepage = "https://github.com/searxng/fasttext-predict/"; 30 + license = licenses.mit; 31 + maintainers = with maintainers; [ SuperSandro2000 ]; 32 + # ImportError: dynamic module does not define module export function (PyInit_fasttext_pybind) 33 + broken = stdenv.isDarwin; 34 + }; 35 + }
+5 -5
pkgs/servers/web-apps/searxng/default.nix
··· 5 5 6 6 python3.pkgs.buildPythonApplication rec { 7 7 pname = "searxng"; 8 - version = "unstable-2022-09-01"; 8 + version = "unstable-2023-03-13"; 9 9 10 10 src = fetchFromGitHub { 11 11 owner = pname; 12 12 repo = pname; 13 - rev = "174e5242569812618af4ebd9a646ba2a6ded5459"; 14 - sha256 = "sha256-Q1+4HkgOoTRtW5XYWpC5dpukkrjG5fP0585soo/srmQ="; 13 + rev = "295c87a926c3deb1e438234550a9d8fbbaad17fa"; 14 + sha256 = "sha256-ItPFUyyuctx/yyMVUn5Ez9f+taNiV6FR0q9wz1jwk8M="; 15 15 }; 16 16 17 17 postPatch = '' ··· 26 26 babel 27 27 certifi 28 28 python-dateutil 29 + fasttext-predict 29 30 flask 30 31 flask-babel 31 32 brotli 32 33 jinja2 33 - langdetect 34 34 lxml 35 35 pygments 36 36 pyyaml ··· 56 56 homepage = "https://github.com/searxng/searxng"; 57 57 description = "A fork of Searx, a privacy-respecting, hackable metasearch engine"; 58 58 license = licenses.agpl3Plus; 59 - maintainers = with maintainers; [ kranzes ]; 59 + maintainers = with maintainers; [ SuperSandro2000 ]; 60 60 }; 61 61 }
+2
pkgs/top-level/python-packages.nix
··· 3297 3297 3298 3298 fasttext = callPackage ../development/python-modules/fasttext { }; 3299 3299 3300 + fasttext-predict = callPackage ../development/python-modules/fasttext-predict { }; 3301 + 3300 3302 favicon = callPackage ../development/python-modules/favicon { }; 3301 3303 3302 3304 fb-re2 = callPackage ../development/python-modules/fb-re2 { };