Commit 261ccc19 authored by Sigmanificient's avatar Sigmanificient
Browse files

python3Packages.simplebayes: drop nose dependency

parent 4761a134
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -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";