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