1{ lib 2, buildPythonPackage 3, fetchPypi 4, isPy3k 5, cython 6, numpy 7}: 8 9buildPythonPackage rec { 10 pname = "pkuseg"; 11 version = "0.0.25"; 12 13 disabled = !isPy3k; 14 15 src = fetchPypi { 16 inherit pname version; 17 sha256 = "148yp0l7h8cflxag62pc1iwj5b5liyljnaxwfjaiqwl96vwjn0fx"; 18 }; 19 20 # Does not seem to have actual tests, but unittest discover 21 # recognizes some non-tests as tests and fails. 22 doCheck = false; 23 24 nativeBuildInputs = [ cython ]; 25 26 propagatedBuildInputs = [ numpy ]; 27 28 pythonImportsCheck = [ "pkuseg" ]; 29 30 meta = with lib; { 31 description = "Toolkit for multi-domain Chinese word segmentation"; 32 homepage = "https://github.com/lancopku/pkuseg-python"; 33 license = licenses.unfree; 34 }; 35}