summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/langid/default.nix
blob: efb1ea01361741a2b42e9cab535916bf94800279 (plain)
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
34
35
36
37
38
{
  lib,
  buildPythonPackage,
  fetchPypi,
  setuptools,
  wheel,
  numpy,
}:

buildPythonPackage rec {
  pname = "langid";
  version = "1.1.6";
  format = "setuptools";

  src = fetchPypi {
    # use PyPi as source, github repository does not contain tags or release branches
    inherit pname version;
    hash = "sha256-BEvK4ZEtq4XDPY6Y8oEbj0/xIT5emp6VEBN7hNosspM=";
  };

  nativeBuildInputs = [
    setuptools
    wheel
  ];

  propagatedBuildInputs = [ numpy ];

  doCheck = false; # Package has no tests
  pythonImportsCheck = [ "langid" ];

  meta = {
    description = "Langid.py is a standalone Language Identification (LangID) tool";
    mainProgram = "langid";
    homepage = "https://pypi.org/project/langid/";
    license = lib.licenses.bsd2;
    maintainers = [ ];
  };
}