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
34
pkgs/development/python-modules/jieba/default.nix
Normal file
34
pkgs/development/python-modules/jieba/default.nix
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
{ lib, buildPythonPackage, fetchFromGitHub, glibcLocales, python, isPy3k }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "jieba";
|
||||
version = "0.42.1";
|
||||
|
||||
# no tests in PyPI tarball
|
||||
src = fetchFromGitHub {
|
||||
owner = "fxsjy";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "028vmd6sj6wn9l1ilw7qfmlpyiysnlzdgdlhwxs6j4fvq0gyrwxk";
|
||||
};
|
||||
|
||||
checkInputs = [ glibcLocales ];
|
||||
|
||||
# UnicodeEncodeError
|
||||
doCheck = isPy3k;
|
||||
|
||||
# Citing https://github.com/fxsjy/jieba/issues/384: "testcases is in a mess"
|
||||
# So just picking random ones that currently work
|
||||
checkPhase = ''
|
||||
export LC_ALL=en_US.UTF-8
|
||||
${python.interpreter} test/test.py
|
||||
${python.interpreter} test/test_tokenize.py
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Chinese Words Segementation Utilities";
|
||||
homepage = "https://github.com/fxsjy/jieba";
|
||||
license = licenses.mit;
|
||||
maintainers = teams.tts.members;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue