mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 16:03:23 +00:00
diffoscope: 29 -> 44
Relevant changes: - Python version switched to Python 3 - ssdeep library got replaced with tlsh - the 'magic' Python package got replaced with a different one - Minor build system improvements == less work for us
This commit is contained in:
parent
f5b6ced7ec
commit
7e85fdc6df
@ -5,33 +5,30 @@
|
||||
|
||||
pythonPackages.buildPythonPackage rec {
|
||||
name = "diffoscope-${version}";
|
||||
version = "29";
|
||||
version = "44";
|
||||
|
||||
namePrefix = "";
|
||||
|
||||
src = fetchgit {
|
||||
url = "git://anonscm.debian.org/reproducible/diffoscope.git";
|
||||
rev = "refs/tags/${version}";
|
||||
sha256 = "0q7hx2wm9gvzl1f7iilr9pjwpv8i2anscqan7cgk80v90s2pakrf";
|
||||
sha256 = "1sisdmh1bl62b16yfjy9mxxdfzhskrabp0l3pl1kxn7db0c4vpac";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
# Different pkg name in debian
|
||||
sed -i setup.py -e "s@'magic'@'Magic-file-extensions'@"
|
||||
|
||||
# Upstream doesn't provide a PKG-INFO file
|
||||
sed -i setup.py -e "/'rpm',/d"
|
||||
sed -i setup.py -e "/'rpm-python',/d"
|
||||
'';
|
||||
|
||||
# Still missing these tools: ghc javap showttf sng
|
||||
propagatedBuildInputs = (with pythonPackages; [ debian libarchive-c magic ssdeep ]) ++
|
||||
# Still missing these tools: enjarify ghc img2txt javap otool(maybe OS X only) ppudump showttf sng
|
||||
# Also these libraries: python3-guestfs
|
||||
propagatedBuildInputs = (with pythonPackages; [ debian libarchive-c python_magic tlsh ]) ++
|
||||
[ acl binutils bzip2 cdrkit cpio diffutils e2fsprogs file gettext gnupg
|
||||
gzip pdftk poppler_utils rpm sqlite squashfsTools unzip vim xz ];
|
||||
|
||||
doCheck = false; # Calls 'mknod' in squashfs tests, which needs root
|
||||
|
||||
postInstall = ''
|
||||
mv $out/bin/diffoscope.py $out/bin/diffoscope
|
||||
mkdir -p $out/share/man/man1
|
||||
${docutils}/bin/rst2man.py debian/diffoscope.1.rst $out/share/man/man1/diffoscope.1
|
||||
'';
|
||||
|
@ -1285,7 +1285,10 @@ let
|
||||
|
||||
di = callPackage ../tools/system/di { };
|
||||
|
||||
diffoscope = callPackage ../tools/misc/diffoscope { };
|
||||
diffoscope = callPackage ../tools/misc/diffoscope {
|
||||
pythonPackages = python3Packages;
|
||||
rpm = rpm.override { python = python3; };
|
||||
};
|
||||
|
||||
diffstat = callPackage ../tools/text/diffstat { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user