depot/third_party/nixpkgs/pkgs/development/python-modules/spacy-pkuseg/default.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

43 lines
838 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
isPy3k,
cython,
numpy,
srsly,
}:
buildPythonPackage rec {
pname = "spacy-pkuseg";
version = "0.0.33";
format = "setuptools";
disabled = !isPy3k;
src = fetchPypi {
inherit version;
pname = "spacy_pkuseg";
hash = "sha256-8TFWrE4ERg8aw17f0DbplwTbutGa0KObBsNA+AKinmI=";
};
# 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 = [ ];
};
}