Merge pull request #330018 from Sigmanificient/simplebayes

python3Packages.simplebayes: drop nose dependency
This commit is contained in:
Aleksana
2024-07-26 22:19:09 +08:00
committed by GitHub
@@ -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";