9 buildPythonPackage rec {
12 format = "setuptools";
14 disabled = pythonOlder "3.6";
17 inherit pname version;
18 hash = "sha256-tN4B2tfnAfKdIWoJNeheCWzIZ1kD0j6oRFsrtfCQuW8=";
21 propagatedBuildInputs = [
29 # nixify path to the courlan binary in the test suite
31 substituteInPlace tests/test_langid.py --replace "'langid'" "'$out/bin/langid'"
34 pythonImportsCheck = [ "py3langid" ];
37 description = "Fork of the language identification tool langid.py, featuring a modernized codebase and faster execution times";
38 mainProgram = "langid";
39 homepage = "https://github.com/adbar/py3langid";
40 changelog = "https://github.com/adbar/py3langid/blob/v${version}/HISTORY.rst";
41 license = licenses.bsd3;
42 maintainers = with maintainers; [ jokatzke ];