11 buildPythonPackage rec {
16 disabled = pythonOlder "3.6";
19 inherit pname version;
20 hash = "sha256-CodaAxpYqvnb2nu4KF/XXoAae9J2IW/6vgN5AdS0Sew=";
23 nativeBuildInputs = [ setuptools ];
25 propagatedBuildInputs = [ numpy ];
27 nativeCheckInputs = [ pytestCheckHook ];
29 # nixify path to the courlan binary in the test suite
31 substituteInPlace tests/test_langid.py --replace "'langid'" "'$out/bin/langid'"
32 substituteInPlace pyproject.toml --replace-fail \
33 'numpy >= 2.0.0' numpy
36 pythonImportsCheck = [ "py3langid" ];
39 description = "Fork of the language identification tool langid.py, featuring a modernized codebase and faster execution times";
40 mainProgram = "langid";
41 homepage = "https://github.com/adbar/py3langid";
42 changelog = "https://github.com/adbar/py3langid/blob/v${version}/HISTORY.rst";
43 license = licenses.bsd3;
44 maintainers = with maintainers; [ jokatzke ];