python3Packages.simplebayes: drop nose dependency

This commit is contained in:
Sigmanificient 2024-07-25 23:36:02 +02:00
parent 4761a13485
commit 261ccc198f

View File

@ -2,7 +2,7 @@
lib,
buildPythonPackage,
fetchFromGitHub,
nose,
unittestCheckHook,
mock,
isPy3k,
}:
@ -22,16 +22,14 @@ buildPythonPackage {
};
nativeCheckInputs = [
nose
mock
unittestCheckHook
];
postPatch = lib.optionalString isPy3k ''
sed -i -e 's/open *(\([^)]*\))/open(\1, encoding="utf-8")/' setup.py
'';
checkPhase = "nosetests tests/test.py";
meta = with lib; {
description = "Memory-based naive bayesian text classifier";
homepage = "https://github.com/hickeroar/simplebayes";