uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 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
|
||||
, lib
|
||||
, 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 lib; {
|
||||
homepage = "https://github.com/alvations/sacremoses";
|
||||
description = "Python port of Moses tokenizer, truecaser and normalizer";
|
||||
license = licenses.lgpl21Plus;
|
||||
platforms = platforms.unix;
|
||||
maintainers = with maintainers; [ pashashocky ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue