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