23 , argos-translate-files
31 buildPythonPackage rec {
32 pname = "libretranslate";
36 src = fetchFromGitHub {
37 owner = "LibreTranslate";
38 repo = "LibreTranslate";
39 rev = "refs/tags/v${version}";
40 hash = "sha256-43VnxgtapMRKyXxqsvBgSMUxvpbLI+iOfW3FA0/POpE=";
48 pythonRelaxDeps = true;
75 # expose static files to be able to serve them via web-server
76 mkdir -p $out/share/libretranslate
77 ln -s $out/${python.sitePackages}/libretranslate/static $out/share/libretranslate/static
80 doCheck = false; # needs network access
86 # required for import check to work (argostranslate)
89 pythonImportsCheck = [ "libretranslate" ];
92 description = "Free and Open Source Machine Translation API. Self-hosted, no limits, no ties to proprietary services";
93 homepage = "https://libretranslate.com";
94 changelog = "https://github.com/LibreTranslate/LibreTranslate/releases/tag/v${version}";
95 license = licenses.agpl3Only;
96 maintainers = with maintainers; [ misuzu ];