Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 21 additions & 13 deletions pkgs/development/python-modules/stanza/default.nix
Original file line number Diff line number Diff line change
@@ -1,56 +1,64 @@
{
lib,
buildPythonPackage,
emoji,
fetchFromGitHub,
# build-system
setuptools,
# dependencies
emoji,
networkx,
numpy,
peft,
protobuf,
requests,
six,
toml,
torch,
tqdm,
transformers,
}:

buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "stanza";
version = "1.11.0";
format = "setuptools";
pyproject = true;

src = fetchFromGitHub {
owner = "stanfordnlp";
repo = "stanza";
tag = "v${version}";
tag = "v${finalAttrs.version}";
hash = "sha256-zY2+8QuPJTX/HSkE/gKMCWpSanKpYSGZeeYgb4eFuuw=";
};

propagatedBuildInputs = [
build-system = [ setuptools ];

dependencies = [
emoji
networkx
numpy
peft
protobuf
requests
six
toml
torch
tqdm
transformers
];

# Tests require network access
# Most tests require resources from the network (models). Many of the ones that do run are slow
# and some of them fail.
#
# Maintaining a list of "tests we can actually run in CI" isn't feasible, there are WAY too many
# exceptions and no useful pytest marks.
doCheck = false;

pythonImportsCheck = [ "stanza" ];

meta = {
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}";
changelog = "https://github.com/stanfordnlp/stanza/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ riotbib ];
maintainers = with lib.maintainers; [
riotbib
Stebalien
];
};
}
})
Loading