Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
49 lines
841 B
Nix
49 lines
841 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
|
|
setuptools,
|
|
|
|
gensim,
|
|
numpy,
|
|
requests,
|
|
sentencepiece,
|
|
tqdm,
|
|
}:
|
|
|
|
buildPythonPackage {
|
|
pname = "bpemb";
|
|
version = "0.3.5";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "bheinzerling";
|
|
repo = "bpemb";
|
|
rev = "ec85774945ca76dd93c1d9b4af2090e80c5779dc";
|
|
hash = "sha256-nVaMXb5TBhO/vWE8AYAA3P9dSPI8O+rmzFvbEj8VEkE=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
gensim
|
|
numpy
|
|
requests
|
|
sentencepiece
|
|
tqdm
|
|
];
|
|
|
|
# need network connection for tests
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "bpemb" ];
|
|
|
|
meta = with lib; {
|
|
description = "Byte-pair embeddings in 275 languages";
|
|
homepage = "https://github.com/bheinzerling/bpemb";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ vizid ];
|
|
};
|
|
}
|