1{ lib
2, buildPythonPackage
3, fetchPypi
4, setuptools
5, wheel
6, numpy
7}:
8
9buildPythonPackage rec {
10 pname = "langid";
11 version = "1.1.6";
12 format = "setuptools";
13
14 src = fetchPypi { # use PyPi as source, github repository does not contain tags or release branches
15 inherit pname version;
16 hash = "sha256-BEvK4ZEtq4XDPY6Y8oEbj0/xIT5emp6VEBN7hNosspM=";
17 };
18
19 nativeBuildInputs = [
20 setuptools
21 wheel
22 ];
23
24 propagatedBuildInputs = [
25 numpy
26 ];
27
28 doCheck = false; # Package has no tests
29 pythonImportsCheck = [ "langid" ];
30
31 meta = with lib; {
32 description = "Langid.py is a standalone Language Identification (LangID) tool";
33 homepage = "https://pypi.org/project/langid/";
34 license = licenses.bsd2;
35 maintainers = with maintainers; [ mbalatsko ];
36 };
37}