python3Packages.pkuseg: init at 0.0.25

This commit is contained in:
Daniël de Kok 2020-06-21 11:34:59 +02:00 committed by Jon
parent 209ab7c8b4
commit 9c06da093f
2 changed files with 38 additions and 0 deletions

View File

@ -0,0 +1,36 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, isPy3k
, cython
, numpy
}:
buildPythonPackage rec {
pname = "pkuseg";
version = "0.0.25";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "148yp0l7h8cflxag62pc1iwj5b5liyljnaxwfjaiqwl96vwjn0fx";
};
# Does not seem to have actual tests, but unittest discover
# recognizes some non-tests as tests and fails.
doCheck = false;
nativeBuildInputs = [ cython ];
propagatedBuildInputs = [ numpy ];
pythonImportsCheck = [ "pkuseg" ];
meta = with stdenv.lib; {
description = "Toolkit for multi-domain Chinese word segmentation";
homepage = "https://github.com/lancopku/pkuseg-python";
license = licenses.unfree;
maintainers = with maintainers; [ danieldk ];
};
}

View File

@ -7330,6 +7330,8 @@ in {
murmurhash = callPackage ../development/python-modules/murmurhash { };
pkuseg = callPackage ../development/python-modules/pkuseg { };
plac = callPackage ../development/python-modules/plac { };
preshed = callPackage ../development/python-modules/preshed { };