1{ buildPythonPackage 2, lib 3, fetchFromGitHub 4, click 5, six 6, tqdm 7, joblib 8, pytest 9}: 10 11buildPythonPackage rec { 12 pname = "sacremoses"; 13 version = "0.0.35"; 14 15 src = fetchFromGitHub { 16 owner = "alvations"; 17 repo = pname; 18 rev = version; 19 sha256 = "1gzr56w8yx82mn08wax5m0xyg15ym4ri5l80gmagp8r53443j770"; 20 }; 21 22 propagatedBuildInputs = [ click six tqdm joblib ]; 23 24 checkInputs = [ pytest ]; 25 # ignore tests which call to remote host 26 checkPhase = '' 27 pytest -k 'not truecase' 28 ''; 29 30 meta = with lib; { 31 homepage = "https://github.com/alvations/sacremoses"; 32 description = "Python port of Moses tokenizer, truecaser and normalizer"; 33 license = licenses.lgpl21Plus; 34 platforms = platforms.unix; 35 maintainers = with maintainers; [ pashashocky ]; 36 }; 37}