about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/stanza/default.nix
blob: ce9719a75210a66276560a8b5b5356fb87fe74b9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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 ];
  };
}