1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 setuptools,
6 wheel,
7 numpy,
8}:
9
10buildPythonPackage rec {
11 pname = "langid";
12 version = "1.1.6";
13 format = "setuptools";
14
15 src = fetchPypi {
16 # use PyPi as source, github repository does not contain tags or release branches
17 inherit pname version;
18 hash = "sha256-BEvK4ZEtq4XDPY6Y8oEbj0/xIT5emp6VEBN7hNosspM=";
19 };
20
21 nativeBuildInputs = [
22 setuptools
23 wheel
24 ];
25
26 propagatedBuildInputs = [ numpy ];
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 mainProgram = "langid";
34 homepage = "https://pypi.org/project/langid/";
35 license = licenses.bsd2;
36 maintainers = with maintainers; [ mbalatsko ];
37 };
38}