10 buildPythonPackage rec {
13 format = "setuptools";
15 disabled = !isPy3k || pythonAtLeast "3.9";
18 inherit pname version;
19 sha256 = "148yp0l7h8cflxag62pc1iwj5b5liyljnaxwfjaiqwl96vwjn0fx";
22 # Does not seem to have actual tests, but unittest discover
23 # recognizes some non-tests as tests and fails.
26 nativeBuildInputs = [ cython ];
28 propagatedBuildInputs = [ numpy ];
30 pythonImportsCheck = [ "pkuseg" ];
33 description = "Toolkit for multi-domain Chinese word segmentation";
34 homepage = "https://github.com/lancopku/pkuseg-python";
35 license = licenses.unfree;