2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
setuptools,
|
|
|
|
wheel,
|
|
|
|
numpy,
|
2023-10-09 19:29:22 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "langid";
|
|
|
|
version = "1.1.6";
|
|
|
|
format = "setuptools";
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
# use PyPi as source, github repository does not contain tags or release branches
|
2023-10-09 19:29:22 +00:00
|
|
|
inherit pname version;
|
|
|
|
hash = "sha256-BEvK4ZEtq4XDPY6Y8oEbj0/xIT5emp6VEBN7hNosspM=";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
wheel
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs = [ numpy ];
|
2023-10-09 19:29:22 +00:00
|
|
|
|
|
|
|
doCheck = false; # Package has no tests
|
|
|
|
pythonImportsCheck = [ "langid" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Langid.py is a standalone Language Identification (LangID) tool";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "langid";
|
2023-10-09 19:29:22 +00:00
|
|
|
homepage = "https://pypi.org/project/langid/";
|
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = with maintainers; [ mbalatsko ];
|
|
|
|
};
|
|
|
|
}
|