mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 07:13:23 +01:00
python3Packages.spacy_pkuseg: init at 0.0.28
This is the spaCy fork of pkuseg, a Chinese word segmentation toolkit.
This commit is contained in:
parent
28e8b89cec
commit
e90940f28f
2 changed files with 40 additions and 0 deletions
38
pkgs/development/python-modules/spacy-pkuseg/default.nix
Normal file
38
pkgs/development/python-modules/spacy-pkuseg/default.nix
Normal file
|
@ -0,0 +1,38 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, isPy3k
|
||||
, cython
|
||||
, numpy
|
||||
, srsly
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "spacy-pkuseg";
|
||||
version = "0.0.28";
|
||||
|
||||
disabled = !isPy3k;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit version;
|
||||
pname = "spacy_pkuseg";
|
||||
hash = "sha256-mmA/baY9ohvrM41ak5L+G8CUrSQeZCrzmMAoND4X/NI=";
|
||||
};
|
||||
|
||||
# Does not seem to have actual tests, but unittest discover
|
||||
# recognizes some non-tests as tests and fails.
|
||||
doCheck = false;
|
||||
|
||||
nativeBuildInputs = [ cython ];
|
||||
|
||||
propagatedBuildInputs = [ numpy srsly ];
|
||||
|
||||
pythonImportsCheck = [ "spacy_pkuseg" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Toolkit for multi-domain Chinese word segmentation (spaCy fork)";
|
||||
homepage = "https://github.com/explosion/spacy-pkuseg";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ danieldk ];
|
||||
};
|
||||
}
|
|
@ -7720,6 +7720,8 @@ in {
|
|||
|
||||
spacy_models = callPackage ../development/python-modules/spacy/models.nix { };
|
||||
|
||||
spacy-pkuseg = callPackage ../development/python-modules/spacy-pkuseg { };
|
||||
|
||||
spake2 = callPackage ../development/python-modules/spake2 { };
|
||||
|
||||
spark_parser = callPackage ../development/python-modules/spark_parser { };
|
||||
|
|
Loading…
Reference in a new issue