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