diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 3b5ad02719e6..b2aedba67d0a 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -9760,6 +9760,12 @@ githubId = 37246692; name = "Riley Inman"; }; + riotbib = { + email = "github-nix@lnrt.de"; + github = "riotbib"; + githubId = 43172581; + name = "Lennart Mühlenmeier"; + }; ris = { email = "code@humanleg.org.uk"; github = "risicle"; diff --git a/pkgs/development/python-modules/stanza/default.nix b/pkgs/development/python-modules/stanza/default.nix new file mode 100644 index 000000000000..ce9719a75210 --- /dev/null +++ b/pkgs/development/python-modules/stanza/default.nix @@ -0,0 +1,49 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, pythonOlder +, emoji +, numpy +, protobuf +, requests +, six +, pytorch +, tqdm +}: + +buildPythonPackage rec { + pname = "stanza"; + version = "1.3.0"; + + src = fetchFromGitHub { + owner = "stanfordnlp"; + repo = pname; + rev = "v${version}"; + sha256 = "1j5918n875p3ibhzc5zp3vb97asbbnb04pj1igxwzl0xm6qcsbh8"; + }; + + disabled = pythonOlder "3.6"; + + propagatedBuildInputs = [ + emoji + numpy + protobuf + requests + six + pytorch + 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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index a6abc29d1357..7f4e596ec356 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -8931,6 +8931,8 @@ in { stack-data = callPackage ../development/python-modules/stack-data { }; + stanza = callPackage ../development/python-modules/stanza { }; + starlette = callPackage ../development/python-modules/starlette { inherit (pkgs.darwin.apple_sdk.frameworks) ApplicationServices; };