diffoscope: fix build on darwin

launchpad/nixpkgs/master
Mario Rodas 3 years ago
parent 6816676a45
commit f7020dfe2a
  1. 17
      pkgs/tools/misc/diffoscope/default.nix
  2. 2
      pkgs/top-level/all-packages.nix

@ -38,7 +38,7 @@ python3Packages.buildPythonApplication rec {
# Still missing these tools: docx2txt dumpimage dumppdf dumpxsb enjarify lipo ocamlobjinfo oggDump otool procyon
pythonPath = [
binutils-unwrapped bzip2 colordiff coreutils cpio db diffutils
dtc e2fsprogs file findutils fontforge-fonttools gettext gnutar gzip
e2fsprogs file findutils fontforge-fonttools gettext gnutar gzip
libarchive libcaca lz4 openssl pgpdump sng sqlite squashfsTools unzip xxd
xz zip zstd
]
@ -46,7 +46,7 @@ python3Packages.buildPythonApplication rec {
argcomplete debian defusedxml jsondiff jsbeautifier libarchive-c
python_magic progressbar33 pypdf2 rpm tlsh
])
++ lib.optionals stdenv.isLinux [ python3Packages.pyxattr acl cdrkit ]
++ lib.optionals stdenv.isLinux [ python3Packages.pyxattr acl cdrkit dtc ]
++ lib.optionals enableBloat ([
abootimg apksigner apktool cbfstool colord ffmpeg fpc ghc ghostscriptX giflib gnupg gnumeric
hdf5 imagemagick llvm jdk mono odt2txt openssh pdftk poppler_utils qemu R tcpdump wabt radare2
@ -70,6 +70,19 @@ python3Packages.buildPythonApplication rec {
# Failing because of file-v5.40 has a slightly different output.
# Upstream issue: https://salsa.debian.org/reproducible-builds/diffoscope/-/issues/271
"test_text_proper_indentation"
] ++ lib.optionals stdenv.isDarwin [
# Disable flaky tests on Darwin
"test_non_unicode_filename"
"test_listing"
];
# flaky tests on Darwin
disabledTestPaths = lib.optionals stdenv.isDarwin [
"tests/comparators/test_git.py"
"tests/comparators/test_java.py"
"tests/comparators/test_uimage.py"
"tests/comparators/test_device.py"
"tests/comparators/test_macho.py"
];
meta = with lib; {

@ -4256,7 +4256,7 @@ with pkgs;
};
diffoscope = diffoscopeMinimal.override {
enableBloat = true;
enableBloat = !stdenv.isDarwin;
};
diffr = callPackage ../tools/text/diffr {

Loading…
Cancel
Save