python310Packages.stanza: add missing input

This commit is contained in:
Fabian Affolter 2022-09-18 11:14:25 +02:00
parent 634ccbcbc7
commit 033d9d24ba

View file

@ -1,29 +1,31 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, emoji
, fetchFromGitHub
, numpy
, protobuf
, pythonOlder
, requests
, six
, torch
, tqdm
, transformers
}:
buildPythonPackage rec {
pname = "stanza";
version = "1.4.0";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "stanfordnlp";
repo = pname;
rev = "refs/tags/v${version}";
sha256 = "sha256-EAES3UpJqE7wmvCPycFhwI1lMrReN+L6W8CEDwdHTlA=";
hash = "sha256-EAES3UpJqE7wmvCPycFhwI1lMrReN+L6W8CEDwdHTlA=";
};
disabled = pythonOlder "3.6";
propagatedBuildInputs = [
emoji
numpy
@ -32,13 +34,15 @@ buildPythonPackage rec {
six
torch
tqdm
transformers
];
# disabled, because the tests try to connect to the internet which
# is forbidden in the sandbox
# Tests require network access
doCheck = false;
pythonImportsCheck = [ "stanza" ];
pythonImportsCheck = [
"stanza"
];
meta = with lib; {
description = "Official Stanford NLP Python Library for Many Human Languages";