depot/third_party/nixpkgs/pkgs/development/python-modules/spacy-pkuseg/default.nix
Default email 02cf88bb76 Project import generated by Copybara.
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
2022-08-12 15:06:08 +03:00

38 lines
812 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, isPy3k
, cython
, numpy
, srsly
}:
buildPythonPackage rec {
pname = "spacy-pkuseg";
version = "0.0.31";
disabled = !isPy3k;
src = fetchPypi {
inherit version;
pname = "spacy_pkuseg";
hash = "sha256-C/6uYeXjmmZiWFIvk/2P8+CEX4ZBhYNnRX1T4rD75N8=";
};
# 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; [ ];
};
}