1{ lib 2, buildPythonPackage 3, emoji 4, fetchFromGitHub 5, numpy 6, protobuf 7, pythonOlder 8, requests 9, six 10, torch 11, tqdm 12, transformers 13}: 14 15buildPythonPackage rec { 16 pname = "stanza"; 17 version = "1.4.2"; 18 format = "setuptools"; 19 20 disabled = pythonOlder "3.6"; 21 22 src = fetchFromGitHub { 23 owner = "stanfordnlp"; 24 repo = pname; 25 rev = "refs/tags/v${version}"; 26 hash = "sha256-v4/wYfXqOwSXxx864LNxviRtsqu5DXqs9diswA1oZXc="; 27 }; 28 29 propagatedBuildInputs = [ 30 emoji 31 numpy 32 protobuf 33 requests 34 six 35 torch 36 tqdm 37 transformers 38 ]; 39 40 # Tests require network access 41 doCheck = false; 42 43 pythonImportsCheck = [ 44 "stanza" 45 ]; 46 47 meta = with lib; { 48 description = "Official Stanford NLP Python Library for Many Human Languages"; 49 homepage = "https://github.com/stanfordnlp/stanza/"; 50 license = licenses.asl20; 51 maintainers = with maintainers; [ riotbib ]; 52 }; 53}