@@ -1,4 +1,4 @@
1−{ lib, stdenv, fetchgit, python3Packages, docutils
1+{ lib, stdenv, fetchgit, python3Packages, docutils, help2man
22, acl, apktool, libbfd, bzip2, cbfstool, cdrkit, colord, colordiff, coreutils, cpio, diffutils, dtc
33, e2fsprogs, file, findutils, fontforge-fonttools, fpc, gettext, ghc, ghostscriptX, giflib, gnupg1, gnutar
44, gzip, imagemagick, jdk, libarchive, libcaca, llvm, mono, openssh, pdftk, pgpdump, poppler_utils, sng, sqlite
@@ -8,12 +8,12 @@
88
99python3Packages.buildPythonApplication rec {
1010 name = "diffoscope-${version}";
11− version = "87";
11+ version = "90";
1212
1313 src = fetchgit {
1414 url = "git://anonscm.debian.org/reproducible/diffoscope.git";
1515 rev = "refs/tags/${version}";
16− sha256 = "0j3pljwmggrpaghbamvr24x4cg5yj7hl2ll27405p7970scnpngv";
16+ sha256 = "1w16667j6ag2iim1xcy8y9v9965mq50k64wnf693mivddll62704";
1717 };
1818
1919 patches = [
@@ -25,6 +25,8 @@ python3Packages.buildPythonApplication rec {
2525 sed -i setup.py -e "/'rpm-python',/d"
2626 '';
2727
28+ nativeBuildInputs = [ docutils help2man ];
29+
2830 # Still missing these tools: docx2txt enjarify js-beautify oggDump Rscript
2931 # Also these libraries: python3-guestfs
3032 pythonPath = with python3Packages; [ debian libarchive-c python_magic tlsh rpm ] ++ [
@@ -37,10 +39,12 @@ python3Packages.buildPythonApplication rec {
3739 ];
3840
3941 doCheck = false; # Calls 'mknod' in squashfs tests, which needs root
42+ checkInputs = with python3Packages; [ pytest ];
4043
4144 postInstall = ''
45+ make -C doc
4246 mkdir -p $out/share/man/man1
43− ${docutils}/bin/rst2man.py debian/diffoscope.1.rst $out/share/man/man1/diffoscope.1
47+ cp doc/diffoscope.1 $out/share/man/man1/diffoscope.1
4448 '';
4549
4650 meta = with stdenv.lib; {