2023-07-15 17:15:38 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2024-04-21 15:54:59 +00:00
|
|
|
pname = "ltpycld2";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "0.42";
|
|
|
|
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
2024-04-21 15:54:59 +00:00
|
|
|
pname = "LTpycld2";
|
|
|
|
inherit version;
|
2023-07-15 17:15:38 +00:00
|
|
|
sha256 = "948d0c1ab5518ab4efcbcc3cd73bb29f809f1dfb30f4d2fbd81b175a1ffeb516";
|
|
|
|
};
|
|
|
|
|
|
|
|
doCheck = false; # completely broken tests
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "pycld2" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python bindings around Google Chromium's embedded compact language detection library (CLD2)";
|
|
|
|
homepage = "https://github.com/LibreTranslate/pycld2";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ misuzu ];
|
|
|
|
broken = stdenv.isDarwin;
|
|
|
|
};
|
|
|
|
}
|