10 pname = "simplebayes";
13 # Use GitHub instead of pypi, because it contains tests.
14 src = fetchFromGitHub {
17 # NOTE: This is actually 1.5.8 but the tag is wrong!
19 sha256 = "0mp7rvfdmpfxnka4czw3lv5kkh6gdxh6dm4r6hcln1zzfg9lxp4h";
22 nativeCheckInputs = [ nose mock ];
24 postPatch = lib.optionalString isPy3k ''
25 sed -i -e 's/open *(\([^)]*\))/open(\1, encoding="utf-8")/' setup.py
28 checkPhase = "nosetests tests/test.py";
31 description = "Memory-based naive bayesian text classifier";
32 homepage = "https://github.com/hickeroar/simplebayes";
33 license = licenses.mit;