1{ lib
2, buildPythonPackage
3, fetchPypi
4}:
5
6buildPythonPackage rec {
7 pname = "Morfessor";
8 version = "2.0.6";
9
10 format = "setuptools";
11
12 src = fetchPypi {
13 inherit pname version;
14 sha256 = "bb3beac234341724c5f640f65803071f62373a50dba854d5a398567f9aefbab2";
15 };
16
17 checkPhase = "python -m unittest -v morfessor/test/*";
18
19 pythonImportsCheck = [ "morfessor" ];
20
21 meta = with lib; {
22 description = "A tool for unsupervised and semi-supervised morphological segmentation";
23 homepage = "https://github.com/aalto-speech/morfessor";
24 license = licenses.bsd2;
25 maintainers = with maintainers; [ misuzu ];
26 };
27}