debbindiff: init at version 26

[Bjørn: set namePrefix = "" to align attrname/pkgname, break overlong
lines, change patchPhase into postPatch so that 'patches' can still be
used.]
This commit is contained in:
Tuomas Tynkkynen 2015-07-02 23:16:20 +03:00 committed by Bjørn Forsman
parent 8655eb71af
commit 3b81288a58
2 changed files with 48 additions and 0 deletions

View File

@ -0,0 +1,46 @@
{ stdenv, fetchgit, pythonPackages, docutils
, acl, binutils, bzip2, cdrkit, cpio, diffutils, e2fsprogs, file, gettext
, gnupg, gzip, pdftk, poppler_utils, rpm, squashfsTools, unzip, vim, xz
}:
pythonPackages.buildPythonPackage rec {
name = "debbindiff-${version}";
version = "26";
namePrefix = "";
src = fetchgit {
url = "git://anonscm.debian.org/reproducible/debbindiff.git";
rev = "refs/tags/${version}";
sha256 = "18637gc7c92mwcpx3dvh6xild0sb9bwsgfcrjplmh7s8frvlvkv6";
};
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"
'';
# Still missing these tools: ghc javap showttf sng
propagatedBuildInputs = (with pythonPackages; [ debian magic ]) ++
[ acl binutils bzip2 cdrkit cpio diffutils e2fsprogs file gettext gnupg
gzip pdftk poppler_utils rpm squashfsTools unzip vim xz ];
doCheck = false; # Calls 'mknod' in squashfs tests, which needs root
postInstall = ''
mv $out/bin/debbindiff.py $out/bin/debbindiff
mkdir -p $out/share/man/man1
${docutils}/bin/rst2man.py debian/debbindiff.1.rst $out/share/man/man1/debbindiff.1
'';
meta = with stdenv.lib; {
description = "Highlight differences between two builds of Debian packages, and even other kind of files";
homepage = https://wiki.debian.org/ReproducibleBuilds;
license = licenses.gpl3Plus;
maintainers = [ maintainers.dezgeg ];
platforms = platforms.linux;
};
}

View File

@ -1240,6 +1240,8 @@ let
dcfldd = callPackage ../tools/system/dcfldd { };
debbindiff = callPackage ../tools/misc/debbindiff { };
debian_devscripts = callPackage ../tools/misc/debian-devscripts {
inherit (perlPackages) CryptSSLeay LWP TimeDate DBFile FileDesktopEntry;
};