1{ stdenv
2, lib
3, buildPythonPackage
4, fetchPypi
5}:
6
7buildPythonPackage rec {
8 pname = "LTpycld2";
9 version = "0.42";
10
11 format = "setuptools";
12
13 src = fetchPypi {
14 inherit pname version;
15 sha256 = "948d0c1ab5518ab4efcbcc3cd73bb29f809f1dfb30f4d2fbd81b175a1ffeb516";
16 };
17
18 doCheck = false; # completely broken tests
19
20 pythonImportsCheck = [ "pycld2" ];
21
22 meta = with lib; {
23 description = "Python bindings around Google Chromium's embedded compact language detection library (CLD2)";
24 homepage = "https://github.com/LibreTranslate/pycld2";
25 license = licenses.asl20;
26 maintainers = with maintainers; [ misuzu ];
27 broken = stdenv.isDarwin;
28 };
29}