mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 09:23:01 +00:00
ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
39 lines
816 B
Nix
39 lines
816 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 = with lib; {
|
|
description = "Langid.py is a standalone Language Identification (LangID) tool";
|
|
mainProgram = "langid";
|
|
homepage = "https://pypi.org/project/langid/";
|
|
license = licenses.bsd2;
|
|
maintainers = with maintainers; [ mbalatsko ];
|
|
};
|
|
}
|