sacremoses: init at 0.0.35
This commit is contained in:
parent
0b68e445e1
commit
16d9c2a570
2 changed files with 39 additions and 0 deletions
37
pkgs/development/python-modules/sacremoses/default.nix
Normal file
37
pkgs/development/python-modules/sacremoses/default.nix
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
{ buildPythonPackage
|
||||||
|
, stdenv
|
||||||
|
, fetchFromGitHub
|
||||||
|
, click
|
||||||
|
, six
|
||||||
|
, tqdm
|
||||||
|
, joblib
|
||||||
|
, pytest
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "sacremoses";
|
||||||
|
version = "0.0.35";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "alvations";
|
||||||
|
repo = pname;
|
||||||
|
rev = "${version}";
|
||||||
|
sha256 = "1gzr56w8yx82mn08wax5m0xyg15ym4ri5l80gmagp8r53443j770";
|
||||||
|
};
|
||||||
|
|
||||||
|
propagatedBuildInputs = [ click six tqdm joblib ];
|
||||||
|
|
||||||
|
checkInputs = [ pytest ];
|
||||||
|
# ignore tests which call to remote host
|
||||||
|
checkPhase = ''
|
||||||
|
pytest -k 'not truecase'
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
homepage = "https://github.com/alvations/sacremoses";
|
||||||
|
description = "Python port of Moses tokenizer, truecaser and normalizer";
|
||||||
|
license = licenses.lgpl21Plus;
|
||||||
|
platforms = [ "x86_64-linux" ];
|
||||||
|
maintainers = with maintainers; [ pashashocky ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -1281,6 +1281,8 @@ in {
|
||||||
|
|
||||||
selectors2 = callPackage ../development/python-modules/selectors2 { };
|
selectors2 = callPackage ../development/python-modules/selectors2 { };
|
||||||
|
|
||||||
|
sacremoses = callPackage ../development/python-modules/sacremoses { };
|
||||||
|
|
||||||
sentencepiece = callPackage ../development/python-modules/sentencepiece {
|
sentencepiece = callPackage ../development/python-modules/sentencepiece {
|
||||||
inherit (pkgs) sentencepiece pkgconfig;
|
inherit (pkgs) sentencepiece pkgconfig;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue