python3Packages.pkuseg: init at 0.0.25
This commit is contained in:
parent
209ab7c8b4
commit
9c06da093f
36
pkgs/development/python-modules/pkuseg/default.nix
Normal file
36
pkgs/development/python-modules/pkuseg/default.nix
Normal 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 ];
|
||||||
|
};
|
||||||
|
}
|
@ -7330,6 +7330,8 @@ in {
|
|||||||
|
|
||||||
murmurhash = callPackage ../development/python-modules/murmurhash { };
|
murmurhash = callPackage ../development/python-modules/murmurhash { };
|
||||||
|
|
||||||
|
pkuseg = callPackage ../development/python-modules/pkuseg { };
|
||||||
|
|
||||||
plac = callPackage ../development/python-modules/plac { };
|
plac = callPackage ../development/python-modules/plac { };
|
||||||
|
|
||||||
preshed = callPackage ../development/python-modules/preshed { };
|
preshed = callPackage ../development/python-modules/preshed { };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user