Commit a592a573 authored by Martin Weinelt's avatar Martin Weinelt
Browse files

python3Packages.cron-converter: disable failing test

I bisected this one to 0b3b48fb, which makes no sense, so I don't
currently have an idea why it fails.
parent 00d4ea15
Loading
Loading
Loading
Loading
+9 −2
Original line number Diff line number Diff line
@@ -2,7 +2,6 @@
  lib,
  fetchFromGitHub,
  buildPythonPackage,
  unittestCheckHook,
  setuptools,
  python-dateutil,
  python,
@@ -19,13 +18,21 @@ buildPythonPackage rec {
    hash = "sha256-XpkpEMurRrhq1S4XnhPRW5CCBk+HzljOSQfZ98VJ7UE=";
  };

  postPatch = ''
    # Timezone does not match
    substituteInPlace tests/integration/tests_cron_seeker.py \
      --replace-fail "test_timezone" "dont_test_timezone"
  '';

  build-system = [ setuptools ];

  propagatedBuildInputs = [ python-dateutil ];
  dependencies = [ python-dateutil ];

  checkPhase = ''
    runHook preCheck
    ${python.interpreter} -m unittest discover -s tests/unit -v
    ${python.interpreter} -m unittest discover -s tests/integration -v
    runHook postCheck
  '';

  pythonImportsCheck = [ "cron_converter" ];