fetchDebianPatch: add test

This commit is contained in:
nicoo 2023-08-30 07:50:44 +00:00
parent d4e265327f
commit e4162c9e7b
3 changed files with 16 additions and 1 deletions

View file

@ -0,0 +1,11 @@
{ testers, fetchDebianPatch, ... }:
{
simple = testers.invalidateFetcherByDrvHash fetchDebianPatch {
pname = "pysimplesoap";
version = "1.16.2";
debianRevision = "5";
patch = "Add-quotes-to-SOAPAction-header-in-SoapClient";
hash = "sha256-xA8Wnrpr31H8wy3zHSNfezFNjUJt1HbSXn3qUMzeKc0=";
};
}

View file

@ -35,6 +35,7 @@ with pkgs;
fetchurl = callPackages ../build-support/fetchurl/tests.nix { };
fetchpatch = callPackages ../build-support/fetchpatch/tests.nix { };
fetchpatch2 = callPackages ../build-support/fetchpatch/tests.nix { fetchpatch = fetchpatch2; };
fetchDebianPatch = callPackages ../build-support/fetchdebianpatch/tests.nix { };
fetchzip = callPackages ../build-support/fetchzip/tests.nix { };
fetchgit = callPackages ../build-support/fetchgit/tests.nix { };
fetchFirefoxAddon = callPackages ../build-support/fetchfirefoxaddon/tests.nix { };

View file

@ -1173,7 +1173,10 @@ with pkgs;
tests = pkgs.tests.fetchzip;
};
fetchDebianPatch = callPackage ../build-support/fetchdebianpatch { };
fetchDebianPatch = callPackage ../build-support/fetchdebianpatch { }
// {
tests = pkgs.tests.fetchDebianPatch;
};
fetchCrate = callPackage ../build-support/rust/fetchcrate.nix { };