git.iko.soy/typeable/nixpkgs
on master help sign in
python3Packages.stanza: init at 1.3.0
commitaa6463cae65433254ebe3fca1a4727528e484230 authorLennart <lennart@lnrt.de> dateFri 29 Oct 2021, 17:11 (5 years ago) parente832498
2 files changed+51
pkgs/development/python-modules/stanza/default.nix+49 pkgs/top-level/python-packages.nix+2
pkgs/development/python-modules/stanza/default.nixnew file+49
@@ -0,0 +1,49 @@
1+{ lib
2+, buildPythonPackage
3+, fetchFromGitHub
4+, pythonOlder
5+, emoji
6+, numpy
7+, protobuf
8+, requests
9+, six
10+, pytorch
11+, tqdm
12+}:
13+
14+buildPythonPackage rec {
15+ pname = "stanza";
16+ version = "1.3.0";
17+
18+ src = fetchFromGitHub {
19+ owner = "stanfordnlp";
20+ repo = pname;
21+ rev = "v${version}";
22+ sha256 = "1j5918n875p3ibhzc5zp3vb97asbbnb04pj1igxwzl0xm6qcsbh8";
23+ };
24+
25+ disabled = pythonOlder "3.6";
26+
27+ propagatedBuildInputs = [
28+ emoji
29+ numpy
30+ protobuf
31+ requests
32+ six
33+ pytorch
34+ tqdm
35+ ];
36+
37+ # disabled, because the tests try to connect to the internet which
38+ # is forbidden in the sandbox
39+ doCheck = false;
40+
41+ pythonImportsCheck = [ "stanza" ];
42+
43+ meta = with lib; {
44+ description = "Official Stanford NLP Python Library for Many Human Languages";
45+ homepage = "https://github.com/stanfordnlp/stanza/";
46+ license = licenses.asl20;
47+ maintainers = with maintainers; [ riotbib ];
48+ };
49+}
pkgs/top-level/python-packages.nix+2
@@ -8828,6 +8828,8 @@ in {
88288828
88298829 stack-data = callPackage ../development/python-modules/stack-data { };
88308830
8831+ stanza = callPackage ../development/python-modules/stanza { };
8832+
88318833 starlette = callPackage ../development/python-modules/starlette {
88328834 inherit (pkgs.darwin.apple_sdk.frameworks) ApplicationServices;
88338835 };