blob: effa571b159e02545aab1e2625831fd304c6f5ca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
{
lib,
buildPythonPackage,
fetchPypi,
cython,
setuptools,
numpy,
srsly,
}:
buildPythonPackage rec {
pname = "spacy-pkuseg";
version = "1.0.1";
pyproject = true;
src = fetchPypi {
inherit version;
pname = "spacy_pkuseg";
hash = "sha256-tIB4d1r/80kUN1NE1W9wo37ARBiMyuzj9wgG/TIqR+s=";
};
# Does not seem to have actual tests, but unittest discover
# recognizes some non-tests as tests and fails.
doCheck = false;
build-system = [
cython
numpy
setuptools
];
dependencies = [
numpy
srsly
];
pythonImportsCheck = [ "spacy_pkuseg" ];
meta = {
description = "Toolkit for multi-domain Chinese word segmentation (spaCy fork)";
homepage = "https://github.com/explosion/spacy-pkuseg";
license = lib.licenses.mit;
maintainers = [ ];
};
}
|