git.iko.soy/typeable/nixpkgs
on master help sign in
dbus-python: fix build with python-3

Also enable checks again.

commit69f8016de9e93d58850f0b3bee8597a30e76dc35 authorVladimír Čunát <vcunat@gmail.com> dateWed 25 May 2016, 09:19 (11 years ago) parent0b192a0
1 file changed+7−3
pkgs/development/python-modules/dbus/default.nix+7−3
pkgs/development/python-modules/dbus/default.nix+7−3
@@ -1,4 +1,5 @@
1−{ stdenv, fetchurl, python, pkgconfig, dbus, dbus_glib, dbus_tools, isPyPy }:
1+{ stdenv, fetchurl, python, pkgconfig, dbus, dbus_glib, dbus_tools, isPyPy
2+, ncurses }:
23
34if isPyPy then throw "dbus-python not supported for interpreter ${python.executable}" else stdenv.mkDerivation rec {
45 name = "dbus-python-1.2.4";
@@ -11,9 +12,12 @@ if isPyPy then throw "dbus-python not supported for interpreter ${python.executa
1112 postPatch = "patchShebangs .";
1213
1314 buildInputs = [ python pkgconfig dbus dbus_glib ]
14− ++ stdenv.lib.optional doCheck dbus_tools;
15+ ++ stdenv.lib.optional doCheck dbus_tools
16+ # My guess why it's sometimes trying to -lncurses.
17+ # It seems not to retain the dependency anyway.
18+ ++ stdenv.lib.optional (! python ? modules) ncurses;
1519
16− doCheck = false; # https://bugs.freedesktop.org/show_bug.cgi?id=57140
20+ doCheck = true;
1721
1822 # Set empty pythonPath, so that the package is recognized as a python package
1923 # for python.buildEnv