21 buildPythonPackage rec {
23 version = "1.1.0-dev";
26 src = fetchFromGitHub {
30 hash = "sha256-x3JJC1Xd+tsOAHJEHGzIrhIrNGSvLSanAFc7+uXb2Kk=";
33 # no more need, see patch...
35 sed -i "/nptyping>=/d" setup.py
40 name = "fix-nptyping-deprecated-array.patch";
41 url = "https://github.com/PyThaiNLP/attacut/commit/a707297b3f08a015d32d8ac241aa8cb11128cbd4.patch";
42 includes = [ "attacut/evaluation.py" ];
43 hash = "sha256-k2DJPwiH1Fyf5u6+zavx0bankCXsJVZrw1MGcf8ZL+M=";
47 build-system = [ setuptools ];
60 nativeCheckInputs = [ pytestCheckHook ];
62 pytestFlagsArray = [ "tests/*" ];
64 pythonImportsCheck = [ "attacut" ];
67 description = "Fast and Accurate Neural Thai Word Segmenter";
68 homepage = "https://github.com/PyThaiNLP/attacut";
69 license = licenses.mit;
70 maintainers = with maintainers; [ vizid ];
71 mainProgram = "attacut-cli";