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.

50 lines
915 B
Nix
Raw Normal View History

2021-10-29 15:11:32 +00:00
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, emoji
, numpy
, protobuf
, requests
, six
, torch
2021-10-29 15:11:32 +00:00
, tqdm
}:
buildPythonPackage rec {
pname = "stanza";
2022-07-16 10:59:38 +00:00
version = "1.4.0";
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}";
sha256 = "sha256-EAES3UpJqE7wmvCPycFhwI1lMrReN+L6W8CEDwdHTlA=";
2021-10-29 15:11:32 +00:00
};
disabled = pythonOlder "3.6";
propagatedBuildInputs = [
emoji
numpy
protobuf
requests
six
torch
2021-10-29 15:11:32 +00:00
tqdm
];
# disabled, because the tests try to connect to the internet which
# is forbidden in the sandbox
doCheck = false;
pythonImportsCheck = [ "stanza" ];
meta = with lib; {
description = "Official Stanford NLP Python Library for Many Human Languages";
homepage = "https://github.com/stanfordnlp/stanza/";
license = licenses.asl20;
maintainers = with maintainers; [ riotbib ];
};
}