1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pythonOlder 5, emoji 6, numpy 7, protobuf 8, requests 9, six 10, pytorch 11, tqdm 12}: 13 14buildPythonPackage 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}