5e7c2d6cef
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
54 lines
990 B
Nix
54 lines
990 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, emoji
|
|
, fetchFromGitHub
|
|
, numpy
|
|
, protobuf
|
|
, pythonOlder
|
|
, requests
|
|
, six
|
|
, torch
|
|
, tqdm
|
|
, transformers
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "stanza";
|
|
version = "1.6.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "stanfordnlp";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-AyO/BC5JpkxaXXjj8pAVa4WGnK/GTw4xrmUvGLbLt3U=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
emoji
|
|
numpy
|
|
protobuf
|
|
requests
|
|
six
|
|
torch
|
|
tqdm
|
|
transformers
|
|
];
|
|
|
|
# Tests require network access
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [
|
|
"stanza"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Official Stanford NLP Python Library for Many Human Languages";
|
|
homepage = "https://github.com/stanfordnlp/stanza/";
|
|
changelog = "https://github.com/stanfordnlp/stanza/releases/tag/v${version}";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ riotbib ];
|
|
};
|
|
}
|