Unverified Commit 43ca898a authored by Peder Bergebakken Sundt's avatar Peder Bergebakken Sundt Committed by GitHub
Browse files

check-sieve: 0.11 -> 1.0.0 (#507870)

parents 05e9da8f d9e8b605
Loading
Loading
Loading
Loading
+5 −10
Original line number Diff line number Diff line
@@ -10,13 +10,13 @@
}:
stdenv.mkDerivation (finalAttrs: {
  pname = "check-sieve";
  version = "0.11";
  version = "1.0.0";

  src = fetchFromGitHub {
    owner = "dburkart";
    repo = "check-sieve";
    tag = "check-sieve-${finalAttrs.version}";
    hash = "sha256-vmfHXjcZ5J/+kO3/a0p8krLOuC67+q8SxcPJgW+UaTw=";
    tag = "v${finalAttrs.version}";
    hash = "sha256-dElVfLSVtlELleuxCScR6BGuLsJ+KRqcNA8y0lgrBfI=";
  };

  nativeBuildInputs = [
@@ -28,8 +28,6 @@ stdenv.mkDerivation (finalAttrs: {
    (python3.withPackages (p: [ p.setuptools ]))
  ];

  # https://github.com/dburkart/check-sieve/issues/67
  # Remove after the next (>0.10) release
  env.NIX_CFLAGS_COMPILE = "-Wno-error=unused-result";

  installPhase = ''
@@ -39,17 +37,14 @@ stdenv.mkDerivation (finalAttrs: {
  '';

  preCheck = ''
    substituteInPlace test/AST/util.py \
    substituteInPlace test/{AST,simulate}/util.py \
      --replace-fail "/usr/bin/diff" "${diffutils}/bin/diff"
    # Disable flaky tests: https://github.com/dburkart/check-sieve/issues/68
    # Remove after the next (>0.10) release
    rm -rf test/{6785,7352}
  '';

  doCheck = true;

  passthru.updateScript = nix-update-script {
    extraArgs = [ "--version-regex=check-sieve-(.*)" ];
    extraArgs = [ "--version-regex=v(.*)" ];
  };

  meta = {