about summary refs log tree commit diff
path: root/pkgs/applications/version-management/mercurial
diff options
context:
space:
mode:
authorpacien <pacien.trangirard@pacien.net>2023-03-28 15:40:19 +0200
committerpacien <pacien.trangirard@pacien.net>2023-04-07 17:23:37 +0200
commitecbaab1c136768a842013e7d48add51607f7ef80 (patch)
treeef5669e05994b5d7be1beec866356fa5d1fa2972 /pkgs/applications/version-management/mercurial
parent402cc3633cc60dfc50378197305c984518b30773 (diff)
downloadnixlib-ecbaab1c136768a842013e7d48add51607f7ef80.tar
nixlib-ecbaab1c136768a842013e7d48add51607f7ef80.tar.gz
nixlib-ecbaab1c136768a842013e7d48add51607f7ef80.tar.bz2
nixlib-ecbaab1c136768a842013e7d48add51607f7ef80.tar.lz
nixlib-ecbaab1c136768a842013e7d48add51607f7ef80.tar.xz
nixlib-ecbaab1c136768a842013e7d48add51607f7ef80.tar.zst
nixlib-ecbaab1c136768a842013e7d48add51607f7ef80.zip
mercurial: 6.3.3 -> 6.4
This also adds some minor patches for the tests (runner and output
matching), and removes a fixed test from the exclusion list.

Changelog: https://www.mercurial-scm.org/wiki/Release6.4
Diffstat (limited to 'pkgs/applications/version-management/mercurial')
-rw-r--r--pkgs/applications/version-management/mercurial/default.nix28
1 files changed, 20 insertions, 8 deletions
diff --git a/pkgs/applications/version-management/mercurial/default.nix b/pkgs/applications/version-management/mercurial/default.nix
index 0ddabbb12d8a..f28427420325 100644
--- a/pkgs/applications/version-management/mercurial/default.nix
+++ b/pkgs/applications/version-management/mercurial/default.nix
@@ -1,4 +1,4 @@
-{ lib, stdenv, fetchurl, python3Packages, makeWrapper, gettext, installShellFiles
+{ lib, stdenv, fetchurl, fetchpatch, python3Packages, makeWrapper, gettext, installShellFiles
 , re2Support ? true
 , rustSupport ? stdenv.hostPlatform.isLinux, rustPlatform
 , fullBuild ? false
@@ -21,11 +21,11 @@ let
 
   self = python3Packages.buildPythonApplication rec {
     pname = "mercurial${lib.optionalString fullBuild "-full"}";
-    version = "6.3.3";
+    version = "6.4";
 
     src = fetchurl {
       url = "https://mercurial-scm.org/release/mercurial-${version}.tar.gz";
-      sha256 = "sha256-E8l/9YnHYF6ApIjzNoUs4dU4xdQUPPszvmm9rd2RV70=";
+      sha256 = "sha256-6Iv7y5kR52kEoxuXLlf4bajmzliSuYw53VHTuVmcE0c=";
     };
 
     format = "other";
@@ -35,7 +35,7 @@ let
     cargoDeps = if rustSupport then rustPlatform.fetchCargoTarball {
       inherit src;
       name = "mercurial-${version}";
-      sha256 = "sha256-ZQYNFEbvSwiJ/BSQ0ZxpjFrmyXkKjVJciwz45Br7Rl8=";
+      sha256 = "sha256-jgB9UMuZ9v+euGN2LPzg0vNK0KeEa8GpQxLJYgQzzbw=";
       sourceRoot = "mercurial-${version}/rust";
     } else null;
     cargoRoot = if rustSupport then "rust" else null;
@@ -110,6 +110,22 @@ let
       gnupg
     ];
 
+    patches = [
+      # remove dependency over packaging for test runner
+      # https://bz.mercurial-scm.org/show_bug.cgi?id=6805
+      (fetchpatch {
+        url = "https://foss.heptapod.net/mercurial/mercurial-devel/-/commit/5e5e3733082a25856038f0fde66d4e08d8881539.patch";
+        hash = "sha256-JNxESWpWZW3AENz57tNJTV/ALnJjkmG1ZnTWSvTr4qY=";
+      })
+
+      # sligthly different test output matching
+      # https://bz.mercurial-scm.org/show_bug.cgi?id=6807
+      (fetchpatch {
+        url = "https://foss.heptapod.net/mercurial/mercurial-devel/-/commit/2231f7d8a60266bb6907b1708400c970ed799017.patch";
+        hash = "sha256-Lm5qXvM9nbmTpuMuvDoWhY4cQQQN7PFZtmu5e7mQVw4=";
+      })
+    ];
+
     postPatch = ''
       patchShebangs .
 
@@ -149,10 +165,6 @@ let
     # doesn't like the extra setlocale warnings emitted by our bash wrappers
     test-locale.t
 
-    # Python 3.10-3.12 deprecation warning: distutils
-    # https://bz.mercurial-scm.org/show_bug.cgi?id=6729
-    test-hghave.t
-
     # Python 3.10-3.12 deprecation warning: asyncore
     # https://bz.mercurial-scm.org/show_bug.cgi?id=6727
     test-patchbomb-tls.t