Loading pkgs/development/python-modules/fasttext-predict/default.nix 0 → 100644 +35 −0 Original line number Diff line number Diff line { lib , stdenv , buildPythonPackage , fetchPypi , pybind11 }: buildPythonPackage rec { pname = "fasttext-predict"; version = "0.9.2.1"; format = "setuptools"; src = fetchPypi { inherit pname version; sha256 = "sha256-iSCt54tqBmNfrcntDFRXb550607Zr1mMCO2PC1ZbVQw="; }; nativeBuildInputs = [ pybind11 ]; # tests are removed from fork doCheck = false; pythonImportsCheck = [ "fasttext" ]; meta = with lib; { description = "fasttext with wheels and no external dependency, but only the predict method (<1MB)"; homepage = "https://github.com/searxng/fasttext-predict/"; license = licenses.mit; maintainers = with maintainers; [ SuperSandro2000 ]; # ImportError: dynamic module does not define module export function (PyInit_fasttext_pybind) broken = stdenv.isDarwin; }; } pkgs/servers/web-apps/searxng/default.nix +5 −5 Original line number Diff line number Diff line Loading @@ -5,13 +5,13 @@ python3.pkgs.buildPythonApplication rec { pname = "searxng"; version = "unstable-2022-09-01"; version = "unstable-2023-03-13"; src = fetchFromGitHub { owner = pname; repo = pname; rev = "174e5242569812618af4ebd9a646ba2a6ded5459"; sha256 = "sha256-Q1+4HkgOoTRtW5XYWpC5dpukkrjG5fP0585soo/srmQ="; rev = "295c87a926c3deb1e438234550a9d8fbbaad17fa"; sha256 = "sha256-ItPFUyyuctx/yyMVUn5Ez9f+taNiV6FR0q9wz1jwk8M="; }; postPatch = '' Loading @@ -26,11 +26,11 @@ python3.pkgs.buildPythonApplication rec { babel certifi python-dateutil fasttext-predict flask flask-babel brotli jinja2 langdetect lxml pygments pyyaml Loading @@ -56,6 +56,6 @@ python3.pkgs.buildPythonApplication rec { homepage = "https://github.com/searxng/searxng"; description = "A fork of Searx, a privacy-respecting, hackable metasearch engine"; license = licenses.agpl3Plus; maintainers = with maintainers; [ kranzes ]; maintainers = with maintainers; [ SuperSandro2000 ]; }; } pkgs/top-level/python-packages.nix +2 −0 Original line number Diff line number Diff line Loading @@ -3297,6 +3297,8 @@ self: super: with self; { fasttext = callPackage ../development/python-modules/fasttext { }; fasttext-predict = callPackage ../development/python-modules/fasttext-predict { }; favicon = callPackage ../development/python-modules/favicon { }; fb-re2 = callPackage ../development/python-modules/fb-re2 { }; Loading Loading
pkgs/development/python-modules/fasttext-predict/default.nix 0 → 100644 +35 −0 Original line number Diff line number Diff line { lib , stdenv , buildPythonPackage , fetchPypi , pybind11 }: buildPythonPackage rec { pname = "fasttext-predict"; version = "0.9.2.1"; format = "setuptools"; src = fetchPypi { inherit pname version; sha256 = "sha256-iSCt54tqBmNfrcntDFRXb550607Zr1mMCO2PC1ZbVQw="; }; nativeBuildInputs = [ pybind11 ]; # tests are removed from fork doCheck = false; pythonImportsCheck = [ "fasttext" ]; meta = with lib; { description = "fasttext with wheels and no external dependency, but only the predict method (<1MB)"; homepage = "https://github.com/searxng/fasttext-predict/"; license = licenses.mit; maintainers = with maintainers; [ SuperSandro2000 ]; # ImportError: dynamic module does not define module export function (PyInit_fasttext_pybind) broken = stdenv.isDarwin; }; }
pkgs/servers/web-apps/searxng/default.nix +5 −5 Original line number Diff line number Diff line Loading @@ -5,13 +5,13 @@ python3.pkgs.buildPythonApplication rec { pname = "searxng"; version = "unstable-2022-09-01"; version = "unstable-2023-03-13"; src = fetchFromGitHub { owner = pname; repo = pname; rev = "174e5242569812618af4ebd9a646ba2a6ded5459"; sha256 = "sha256-Q1+4HkgOoTRtW5XYWpC5dpukkrjG5fP0585soo/srmQ="; rev = "295c87a926c3deb1e438234550a9d8fbbaad17fa"; sha256 = "sha256-ItPFUyyuctx/yyMVUn5Ez9f+taNiV6FR0q9wz1jwk8M="; }; postPatch = '' Loading @@ -26,11 +26,11 @@ python3.pkgs.buildPythonApplication rec { babel certifi python-dateutil fasttext-predict flask flask-babel brotli jinja2 langdetect lxml pygments pyyaml Loading @@ -56,6 +56,6 @@ python3.pkgs.buildPythonApplication rec { homepage = "https://github.com/searxng/searxng"; description = "A fork of Searx, a privacy-respecting, hackable metasearch engine"; license = licenses.agpl3Plus; maintainers = with maintainers; [ kranzes ]; maintainers = with maintainers; [ SuperSandro2000 ]; }; }
pkgs/top-level/python-packages.nix +2 −0 Original line number Diff line number Diff line Loading @@ -3297,6 +3297,8 @@ self: super: with self; { fasttext = callPackage ../development/python-modules/fasttext { }; fasttext-predict = callPackage ../development/python-modules/fasttext-predict { }; favicon = callPackage ../development/python-modules/favicon { }; fb-re2 = callPackage ../development/python-modules/fb-re2 { }; Loading