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