Merge pull request from RaitoBezarius/diffoscope-update

This commit is contained in:
Ryan Lahfa 2023-12-09 14:02:47 +01:00 committed by GitHub
commit a6bd197825
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,7 @@
{ lib
, stdenv
, abootimg
, acl
, apksigcopier
, apksigner
, apktool
@ -78,11 +79,11 @@
# Note: when upgrading this package, please run the list-missing-tools.sh script as described below!
python3.pkgs.buildPythonApplication rec {
pname = "diffoscope";
version = "252";
version = "253";
src = fetchurl {
url = "https://diffoscope.org/archive/diffoscope-${version}.tar.bz2";
hash = "sha256-NmYv5htZT2v04vVksIWGuaPI1rXfNmrVSmErT/faBbQ=";
hash = "sha256-xI+SIEUPKFxz7sk9qqE1ibSJX0WRPnJEpco0Mqv7Wp8=";
};
outputs = [
@ -112,16 +113,20 @@ 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:
# Android-specific tools:
# aapt2
# dexdump
# docx2txt
# getfacl
# Darwin-specific tools:
# lipo
# otool
# r2pipe
# Other tools:
# docx2txt <- makes tests broken:
# > FAILED tests/comparators/test_docx.py::test_diff - IndexError: list index out of range
# > FAILED tests/comparators/test_docx.py::test_compare_non_existing - AssertionError
#
# We filter automatically all packages for the host platform (some dependencies are not supported on Darwin, aarch64, etc.).
pythonPath = lib.filter (lib.meta.availableOn stdenv.hostPlatform) ([
acl
binutils-unwrapped-all-targets
bzip2
cdrkit
@ -209,6 +214,7 @@ python3.pkgs.buildPythonApplication rec {
guestfs
h5py
pdfminer-six
# docx2txt, breaks the tests.
])
# oggvideotools is broken on Darwin, please put it back when it will be fixed?
++ lib.optionals stdenv.isLinux [ oggvideotools ]