mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-13 01:03:25 +00:00
79e6a1f3e2
Remove myself as a maintainer of spaCy and its dependencies.
36 lines
716 B
Nix
36 lines
716 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, isPy3k
|
|
, cython
|
|
, numpy
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pkuseg";
|
|
version = "0.0.25";
|
|
|
|
disabled = !isPy3k;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "148yp0l7h8cflxag62pc1iwj5b5liyljnaxwfjaiqwl96vwjn0fx";
|
|
};
|
|
|
|
# Does not seem to have actual tests, but unittest discover
|
|
# recognizes some non-tests as tests and fails.
|
|
doCheck = false;
|
|
|
|
nativeBuildInputs = [ cython ];
|
|
|
|
propagatedBuildInputs = [ numpy ];
|
|
|
|
pythonImportsCheck = [ "pkuseg" ];
|
|
|
|
meta = with lib; {
|
|
description = "Toolkit for multi-domain Chinese word segmentation";
|
|
homepage = "https://github.com/lancopku/pkuseg-python";
|
|
license = licenses.unfree;
|
|
};
|
|
}
|