summary refs log tree commit diff
path: root/pkgs/tools/misc/diffoscope
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2023-07-02 00:20:44 +0200
committerFabian Affolter <mail@fabian-affolter.ch>2023-07-02 00:20:44 +0200
commit7c75ba9ff2314a80bca070671f44c04127cfb73a (patch)
tree58bd1056be99974d44850c1f8ee1cdd88f2fdf5e /pkgs/tools/misc/diffoscope
parent569e52ad024f83ebac2522d2ec9f99e57f1bb09e (diff)
downloadnixpkgs-7c75ba9ff2314a80bca070671f44c04127cfb73a.tar
nixpkgs-7c75ba9ff2314a80bca070671f44c04127cfb73a.tar.gz
nixpkgs-7c75ba9ff2314a80bca070671f44c04127cfb73a.tar.bz2
nixpkgs-7c75ba9ff2314a80bca070671f44c04127cfb73a.tar.lz
nixpkgs-7c75ba9ff2314a80bca070671f44c04127cfb73a.tar.xz
nixpkgs-7c75ba9ff2314a80bca070671f44c04127cfb73a.tar.zst
nixpkgs-7c75ba9ff2314a80bca070671f44c04127cfb73a.zip
diffoscope: 233 -> 243
Changelog: https://diffoscope.org/news/diffoscope-243-released/
Diffstat (limited to 'pkgs/tools/misc/diffoscope')
-rw-r--r--pkgs/tools/misc/diffoscope/default.nix25
1 files changed, 13 insertions, 12 deletions
diff --git a/pkgs/tools/misc/diffoscope/default.nix b/pkgs/tools/misc/diffoscope/default.nix
index 771344714fa..9c8e33d182d 100644
--- a/pkgs/tools/misc/diffoscope/default.nix
+++ b/pkgs/tools/misc/diffoscope/default.nix
@@ -21,7 +21,6 @@
 , enableBloat ? true
 , enableUnfree ? false
 , enjarify
-, fetchpatch
 , fetchurl
 , file
 , findutils
@@ -44,8 +43,10 @@
 , jdk
 , libarchive
 , libcaca
+, libxmlb
 , llvm
 , lz4
+, lzip
 , mono
 , ocaml
 , odt2txt
@@ -79,11 +80,11 @@
 # Note: when upgrading this package, please run the list-missing-tools.sh script as described below!
 python3.pkgs.buildPythonApplication rec {
   pname = "diffoscope";
-  version = "233";
+  version = "243";
 
   src = fetchurl {
     url = "https://diffoscope.org/archive/diffoscope-${version}.tar.bz2";
-    sha256 = "sha256-A2GYnhdjkzSFnMsy99FmckiOsbRdymAdtjp55hyFLp4=";
+    hash = "sha256-lqI9MOZJxgHZ87kax343t6Wylzv1NWcQZ1cMWgmpnRo=";
   };
 
   outputs = [
@@ -93,11 +94,6 @@ python3.pkgs.buildPythonApplication rec {
 
   patches = [
     ./ignore_links.patch
-    # test_text_proper_indentation requires file >= 5.44
-    (fetchpatch {
-      url = "https://salsa.debian.org/reproducible-builds/diffoscope/-/commit/9fdb78ec0bbc69f1980499dfdcbf6f1dd5e55cc8.patch";
-      sha256 = "sha256-F0N3L9yymj2NjeIKtSnOEDsxPe+ZTb0m/M4f8LPRHg0=";
-    })
   ];
 
   postPatch = ''
@@ -118,7 +114,10 @@ python3.pkgs.buildPythonApplication rec {
   # To help figuring out what's missing from the list, run: ./pkgs/tools/misc/diffoscope/list-missing-tools.sh
   #
   # Still missing these tools:
+  # aapt2
+  # dexdump
   # docx2txt
+  # getfacl
   # lipo
   # otool
   # r2pipe
@@ -143,7 +142,9 @@ python3.pkgs.buildPythonApplication rec {
     gzip
     html2text
     libarchive
+    libxmlb
     lz4
+    lzip
     openssl
     pgpdump
     sng
@@ -214,7 +215,7 @@ python3.pkgs.buildPythonApplication rec {
     ++ lib.optionals stdenv.isLinux [ oggvideotools ]
     # This doesn't work on aarch64-darwin
     ++ lib.optionals (stdenv.hostPlatform != "aarch64-darwin") [ gnumeric ]
-    # `apktool` depend on `build-tools` which requires Android SDK acceptance, therefore, the whole thing is unfree.
+    # apktool depend on build-tools which requires Android SDK acceptance, therefore, the whole thing is unfree
     ++ lib.optionals enableUnfree [ apktool ]
   ));
 
@@ -223,7 +224,7 @@ python3.pkgs.buildPythonApplication rec {
   ] ++ pythonPath;
 
   pytestFlagsArray = [
-    # always show more information when tests fail
+    # Always show more information when tests fail
     "-vv"
   ];
 
@@ -237,7 +238,7 @@ python3.pkgs.buildPythonApplication rec {
     "test_diff_meta"
     "test_diff_meta2"
 
-    # fails because it fails to determine llvm version
+    # Fails because it fails to determine llvm version
     "test_item3_deflate_llvm_bitcode"
   ] ++ lib.optionals stdenv.isDarwin [
     # Disable flaky tests on Darwin
@@ -246,7 +247,7 @@ python3.pkgs.buildPythonApplication rec {
     "test_symlink_root"
   ];
 
-  # flaky tests on Darwin
+  # Flaky tests on Darwin
   disabledTestPaths = lib.optionals stdenv.isDarwin [
     "tests/comparators/test_git.py"
     "tests/comparators/test_java.py"