diff options
author | nicoo <nicoo@mur.at> | 2023-08-30 07:50:44 +0000 |
---|---|---|
committer | nicoo <nicoo@mur.at> | 2023-08-30 07:55:07 +0000 |
commit | e4162c9e7bc7f2a36a10e1c5e1f5ef80953d1b4b (patch) | |
tree | 96b439a642dc02e2f4fea0b36e5b4d5918f0a548 | |
parent | d4e265327f9b98ee6bddd08f422bc0372c484193 (diff) | |
download | nixpkgs-e4162c9e7bc7f2a36a10e1c5e1f5ef80953d1b4b.tar nixpkgs-e4162c9e7bc7f2a36a10e1c5e1f5ef80953d1b4b.tar.gz nixpkgs-e4162c9e7bc7f2a36a10e1c5e1f5ef80953d1b4b.tar.bz2 nixpkgs-e4162c9e7bc7f2a36a10e1c5e1f5ef80953d1b4b.tar.lz nixpkgs-e4162c9e7bc7f2a36a10e1c5e1f5ef80953d1b4b.tar.xz nixpkgs-e4162c9e7bc7f2a36a10e1c5e1f5ef80953d1b4b.tar.zst nixpkgs-e4162c9e7bc7f2a36a10e1c5e1f5ef80953d1b4b.zip |
fetchDebianPatch: add test
-rw-r--r-- | pkgs/build-support/fetchdebianpatch/tests.nix | 11 | ||||
-rw-r--r-- | pkgs/test/default.nix | 1 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 5 |
3 files changed, 16 insertions, 1 deletions
diff --git a/pkgs/build-support/fetchdebianpatch/tests.nix b/pkgs/build-support/fetchdebianpatch/tests.nix new file mode 100644 index 00000000000..2146f66ce70 --- /dev/null +++ b/pkgs/build-support/fetchdebianpatch/tests.nix @@ -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="; + }; +} diff --git a/pkgs/test/default.nix b/pkgs/test/default.nix index b9d75c790da..d6fd75359fc 100644 --- a/pkgs/test/default.nix +++ b/pkgs/test/default.nix @@ -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 { }; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e53b1fe1c65..72c906ec025 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -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 { }; |