1 { lib, stdenv, fetchPypi, buildPythonPackage, python, pkg-config, dbus, dbus-glib, isPyPy
2 , ncurses, pygobject3, isPy3k }:
4 buildPythonPackage rec {
10 outputs = [ "out" "dev" ];
13 inherit pname version;
14 sha256 = "0q3jrw515z98mqdk9x822nd95rky455zz9876f1nqna5igkd3gcj";
18 ./fix-includedir.patch
21 preConfigure = lib.optionalString (lib.versionAtLeast stdenv.hostPlatform.darwinMinVersion "11" && stdenv.isDarwin) ''
22 MACOSX_DEPLOYMENT_TARGET=10.16
26 "PYTHON=${python.pythonOnBuildForHost.interpreter}"
29 nativeBuildInputs = [ pkg-config ];
30 buildInputs = [ dbus dbus-glib ]
31 # My guess why it's sometimes trying to -lncurses.
32 # It seems not to retain the dependency anyway.
33 ++ lib.optional (! python ? modules) ncurses;
36 nativeCheckInputs = [ dbus.out pygobject3 ];
39 cp -r dbus_python.egg-info $out/${python.sitePackages}/
43 description = "Python DBus bindings";
44 license = licenses.mit;
45 platforms = dbus.meta.platforms;
46 maintainers = with maintainers; [ ];