@@ -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
3if isPyPy then throw "dbus-python not supported for interpreter ${python.executable}" else stdenv.mkDerivation rec {
4if isPyPy then throw "dbus-python not supported for interpreter ${python.executable}" else stdenv.mkDerivation rec {
4 name = "dbus-python-1.2.4";
5 name = "dbus-python-1.2.4";
@@ -11,9 +12,12 @@ if isPyPy then throw "dbus-python not supported for interpreter ${python.executa
11 postPatch = "patchShebangs .";
12 postPatch = "patchShebangs .";
13 buildInputs = [ python pkgconfig dbus dbus_glib ]
14 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;
16− doCheck = false; # https://bugs.freedesktop.org/show_bug.cgi?id=57140
20+ doCheck = true;
18 # Set empty pythonPath, so that the package is recognized as a python package
22 # Set empty pythonPath, so that the package is recognized as a python package
19 # for python.buildEnv
23 # for python.buildEnv