Merge pull request #191764 from fabaff/stanza-fix

python310Packages.stanza: add missing input
This commit is contained in:
Fabian Affolter 2022-09-18 12:47:50 +02:00 committed by GitHub
commit 68e8b5586f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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";