nixpkgs/pkgs/development/python-modules/stanza/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

55 lines
990 B
Nix
Raw Normal View History

2021-10-29 15:11:32 +00:00
{ lib
, buildPythonPackage
, emoji
, fetchFromGitHub
2021-10-29 15:11:32 +00:00
, numpy
, protobuf
, pythonOlder
2021-10-29 15:11:32 +00:00
, requests
, six
, torch
2021-10-29 15:11:32 +00:00
, tqdm
, transformers
2021-10-29 15:11:32 +00:00
}:
buildPythonPackage rec {
pname = "stanza";
version = "1.5.0";
format = "setuptools";
disabled = pythonOlder "3.6";
2021-10-29 15:11:32 +00:00
src = fetchFromGitHub {
owner = "stanfordnlp";
repo = pname;
2022-07-16 10:59:38 +00:00
rev = "refs/tags/v${version}";
hash = "sha256-sFGAVavY16UQNJmW467+Ekojws59UMcAoCc1t9wWHM4=";
2021-10-29 15:11:32 +00:00
};
propagatedBuildInputs = [
emoji
numpy
protobuf
requests
six
torch
2021-10-29 15:11:32 +00:00
tqdm
transformers
2021-10-29 15:11:32 +00:00
];
# Tests require network access
2021-10-29 15:11:32 +00:00
doCheck = false;
pythonImportsCheck = [
"stanza"
];
2021-10-29 15:11:32 +00:00
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}";
2021-10-29 15:11:32 +00:00
license = licenses.asl20;
maintainers = with maintainers; [ riotbib ];
};
}