Files
nixpkgs/pkgs/development/python-modules/langid/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

39 lines
820 B
Nix

{
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 = with lib.maintainers; [ mbalatsko ];
};
}