mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-03 02:33:15 +00:00
Merge pull request #330018 from Sigmanificient/simplebayes
python3Packages.simplebayes: drop nose dependency
This commit is contained in:
commit
ce15b0c196
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user