1{ lib 2, buildPythonPackage 3, fetchPypi 4, pytestCheckHook 5, six 6}: 7 8buildPythonPackage rec { 9 pname = "langdetect"; 10 version = "1.0.9"; 11 12 src = fetchPypi { 13 inherit pname version; 14 sha256 = "1805svvb7xjm4sf1j7b6nc3409x37pd1xmabfwwjf1ldkzwgxhfb"; 15 }; 16 17 propagatedBuildInputs = [ 18 six 19 ]; 20 21 nativeCheckInputs = [ 22 pytestCheckHook 23 ]; 24 25 pythonImportsCheck = [ "langdetect" ]; 26 27 meta = with lib; { 28 description = "Python port of Google's language-detection library"; 29 homepage = "https://github.com/Mimino666/langdetect"; 30 license = licenses.asl20; 31 maintainers = with maintainers; [ erikarvstedt ]; 32 }; 33}