Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
35 lines
783 B
Nix
35 lines
783 B
Nix
{
|
|
stdenv,
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "ltpycld2";
|
|
version = "0.42";
|
|
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
pname = "LTpycld2";
|
|
inherit version;
|
|
sha256 = "948d0c1ab5518ab4efcbcc3cd73bb29f809f1dfb30f4d2fbd81b175a1ffeb516";
|
|
};
|
|
|
|
doCheck = false; # completely broken tests
|
|
|
|
pythonImportsCheck = [ "pycld2" ];
|
|
|
|
# Fix build with gcc14
|
|
# https://github.com/aboSamoor/pycld2/pull/62
|
|
env.NIX_CFLAGS_COMPILE = "-Wno-narrowing";
|
|
|
|
meta = {
|
|
description = "Python bindings around Google Chromium's embedded compact language detection library (CLD2)";
|
|
homepage = "https://github.com/LibreTranslate/pycld2";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ misuzu ];
|
|
};
|
|
}
|