Unverified Commit 7a07d9fb authored by dotlambda's avatar dotlambda Committed by GitHub
Browse files

python3.pkgs.localzone: Fix tests with dnspython 2.8.0 (#457595)

parents 41416a0c 37644003
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -30,6 +30,13 @@ buildPythonPackage rec {

  pythonImportsCheck = [ "localzone" ];

  postPatch = ''
    # Fix tests with dnspython 2.8.0
    # https://github.com/ags-slc/localzone/pull/6
    substituteInPlace tests/test_models.py \
      --replace-fail 'raises((AttributeError, DNSSyntaxError))' 'raises((AttributeError, DNSSyntaxError, ValueError))'
  '';

  meta = with lib; {
    description = "Simple DNS library for managing zone files";
    homepage = "https://localzone.iomaestro.com";