1
- { lib , stdenv , fetchgit , python3Packages , docutils
1
+ { lib , stdenv , fetchgit , python3Packages , docutils , help2man
2
2
, acl , apktool , libbfd , bzip2 , cbfstool , cdrkit , colord , colordiff , coreutils , cpio , diffutils , dtc
3
3
, e2fsprogs , file , findutils , fontforge-fonttools , fpc , gettext , ghc , ghostscriptX , giflib , gnupg1 , gnutar
4
4
, gzip , imagemagick , jdk , libarchive , libcaca , llvm , mono , openssh , pdftk , pgpdump , poppler_utils , sng , sqlite
8
8
9
9
python3Packages . buildPythonApplication rec {
10
10
name = "diffoscope-${ version } " ;
11
- version = "87 " ;
11
+ version = "90 " ;
12
12
13
13
src = fetchgit {
14
14
url = "git://anonscm.debian.org/reproducible/diffoscope.git" ;
15
15
rev = "refs/tags/${ version } " ;
16
- sha256 = "0j3pljwmggrpaghbamvr24x4cg5yj7hl2ll27405p7970scnpngv " ;
16
+ sha256 = "1w16667j6ag2iim1xcy8y9v9965mq50k64wnf693mivddll62704 " ;
17
17
} ;
18
18
19
19
patches = [
@@ -25,6 +25,8 @@ python3Packages.buildPythonApplication rec {
25
25
sed -i setup.py -e "/'rpm-python',/d"
26
26
'' ;
27
27
28
+ nativeBuildInputs = [ docutils help2man ] ;
29
+
28
30
# Still missing these tools: docx2txt enjarify js-beautify oggDump Rscript
29
31
# Also these libraries: python3-guestfs
30
32
pythonPath = with python3Packages ; [ debian libarchive-c python_magic tlsh rpm ] ++ [
@@ -37,10 +39,12 @@ python3Packages.buildPythonApplication rec {
37
39
] ;
38
40
39
41
doCheck = false ; # Calls 'mknod' in squashfs tests, which needs root
42
+ checkInputs = with python3Packages ; [ pytest ] ;
40
43
41
44
postInstall = ''
45
+ make -C doc
42
46
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
44
48
'' ;
45
49
46
50
meta = with stdenv . lib ; {
0 commit comments