pytrainer: unpin python 3.10
[NixPkgs.git] / pkgs / build-support / fetchpatch / tests.nix
blobb7352fff7f92543e1a06908712b507a7f3114078
1 { testers, fetchpatch, ... }:
3 let
4   isFetchpatch2 = fetchpatch.version == 2;
5 in
8   simple = testers.invalidateFetcherByDrvHash fetchpatch {
9     url = "https://github.com/facebook/zstd/pull/2724/commits/e1f85dbca3a0ed5ef06c8396912a0914db8dea6a.patch";
10     sha256 = if isFetchpatch2 then "sha256-w4yU0wt64d0WkuBQPeGf8vn5TH6qSBJvNIgka9QK+/Q=" else "sha256-PuYAqnJWAE+L9bsroOnnBGJhERW8LHrGSLtIEkKU9vg=";
11   };
13   relative = testers.invalidateFetcherByDrvHash fetchpatch {
14     url = "https://github.com/boostorg/math/commit/7d482f6ebc356e6ec455ccb5f51a23971bf6ce5b.patch";
15     relative = "include";
16     sha256 = if isFetchpatch2 then "sha256-1TtmuKeNIl/Yp+sfzBMR8Ue78tPIgjqGgjasa5IN52o=" else "sha256-KlmIbixcds6GyKYt1fx5BxDIrU7msrgDdYo9Va/KJR4=";
17   };
19   full = testers.invalidateFetcherByDrvHash fetchpatch {
20     url = "https://github.com/boostorg/math/commit/7d482f6ebc356e6ec455ccb5f51a23971bf6ce5b.patch";
21     relative = "test";
22     stripLen = 1;
23     extraPrefix = "foo/bar/";
24     excludes = [ "foo/bar/bernoulli_no_atomic_mp.cpp" ];
25     revert = true;
26     sha256 = if isFetchpatch2 then "sha256-+UKmEbr2rIAweCav/hR/7d4ZrYV84ht/domTrHtm8sM=" else "sha256-+UKmEbr2rIAweCav/hR/7d4ZrYV84ht/domTrHtm8sM=";
27   };
29   decode = testers.invalidateFetcherByDrvHash fetchpatch {
30     name = "gcc.patch";
31     url = "https://chromium.googlesource.com/aosp/platform/external/libchrome/+/f37ae3b1a873d74182a2ac31d96742ead9c1f523^!?format=TEXT";
32     decode = "base64 -d";
33     sha256 = if isFetchpatch2 then "sha256-oMvPlmzE51ArI+EvFxONXkqmNee39106/O1ikG0Bdso=" else "sha256-SJHk8XrutqAyoIdORlhCpBCN626P+uzed7mjKz5eQYY=";
34   };