pythonPackages.rpm: rpm for specific python version

rpm provides a Python module that is used by certain packages. We need
to override pkgs.rpm to get a correct version.
This commit is contained in:
Frederik Rietdijk 2016-12-01 16:39:51 +01:00
parent 74276caf19
commit 19ca20c91f
3 changed files with 5 additions and 4 deletions

View File

@ -1,6 +1,6 @@
{ lib, stdenv, fetchgit, fetchpatch, pythonPackages, docutils
, acl, binutils, bzip2, cbfstool, cdrkit, colord, cpio, diffutils, e2fsprogs, file, fpc, gettext, ghc
, gnupg1, gzip, jdk, libcaca, mono, pdftk, poppler_utils, rpm, sng, sqlite, squashfsTools, unzip, vim, xz
, gnupg1, gzip, jdk, libcaca, mono, pdftk, poppler_utils, sng, sqlite, squashfsTools, unzip, vim, xz
, enableBloat ? false
}:
@ -29,9 +29,9 @@ pythonPackages.buildPythonApplication rec {
# Still missing these tools: enjarify, otool & lipo (maybe OS X only), showttf
# Also these libraries: python3-guestfs
# FIXME: move xxd into a separate package so we don't have to pull in all of vim.
propagatedBuildInputs = (with pythonPackages; [ debian libarchive-c python_magic tlsh ]) ++
propagatedBuildInputs = (with pythonPackages; [ debian libarchive-c python_magic tlsh rpm ]) ++
map lib.getBin ([ acl binutils bzip2 cbfstool cdrkit cpio diffutils e2fsprogs file gettext
gzip libcaca poppler_utils rpm sng sqlite squashfsTools unzip vim xz
gzip libcaca poppler_utils sng sqlite squashfsTools unzip vim xz
] ++ lib.optionals enableBloat [ colord fpc ghc gnupg1 jdk mono pdftk ]);
doCheck = false; # Calls 'mknod' in squashfs tests, which needs root

View File

@ -1430,7 +1430,6 @@ in
diffoscope = callPackage ../tools/misc/diffoscope {
jdk = jdk7;
pythonPackages = python3Packages;
rpm = rpm.override { python = python3; };
};
diffstat = callPackage ../tools/text/diffstat { };

View File

@ -22454,6 +22454,8 @@ in {
});
rpm = (pkgs.rpm.override{inherit python;});
rpy2 = buildPythonPackage rec {
name = "rpy2-2.8.2";
disabled = isPyPy;