1 { lib, buildPythonPackage, fetchFromGitHub, glibcLocales, python, isPy3k }:
3 buildPythonPackage rec {
7 # no tests in PyPI tarball
8 src = fetchFromGitHub {
12 sha256 = "028vmd6sj6wn9l1ilw7qfmlpyiysnlzdgdlhwxs6j4fvq0gyrwxk";
15 checkInputs = [ glibcLocales ];
20 # Citing https://github.com/fxsjy/jieba/issues/384: "testcases is in a mess"
21 # So just picking random ones that currently work
23 export LC_ALL=en_US.UTF-8
24 ${python.interpreter} test/test.py
25 ${python.interpreter} test/test_tokenize.py
29 description = "Chinese Words Segementation Utilities";
30 homepage = "https://github.com/fxsjy/jieba";
31 license = licenses.mit;