@@ -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