about summary refs log tree commit diff
path: root/pkgs/development/python-modules/langdetect/default.nix
blob: 2b9f87fdd81a4d7b3364f4799be663fd29ef2706 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{ lib
, buildPythonPackage
, fetchPypi
, pytestCheckHook
, six
}:

buildPythonPackage rec {
  pname = "langdetect";
  version = "1.0.9";

  src = fetchPypi {
    inherit pname version;
    sha256 = "1805svvb7xjm4sf1j7b6nc3409x37pd1xmabfwwjf1ldkzwgxhfb";
  };

  propagatedBuildInputs = [
    six
  ];

  checkInputs = [
    pytestCheckHook
  ];

  pythonImportsCheck = [ "langdetect" ];

  meta = with lib; {
    description = "Python port of Google's language-detection library";
    homepage = "https://github.com/Mimino666/langdetect";
    license = licenses.asl20;
    maintainers = with maintainers; [ earvstedt ];
  };
}