2020-04-24 23:36:52 +00:00
|
|
|
{ lib, fetchPypi, buildPythonPackage, python, pkgconfig, dbus, dbus-glib, isPyPy
|
|
|
|
, ncurses, pygobject3 }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "dbus-python";
|
2020-08-20 17:08:02 +00:00
|
|
|
version = "1.2.16";
|
2020-04-24 23:36:52 +00:00
|
|
|
format = "other";
|
|
|
|
|
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-08-20 17:08:02 +00:00
|
|
|
sha256 = "196m5rk3qzw5nkmgzjl7wmq0v7vpwfhh8bz2sapdi5f9hqfqy8qi";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
./fix-includedir.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
disabled = isPyPy;
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ dbus dbus-glib ]
|
|
|
|
# My guess why it's sometimes trying to -lncurses.
|
|
|
|
# It seems not to retain the dependency anyway.
|
|
|
|
++ lib.optional (! python ? modules) ncurses;
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
checkInputs = [ dbus.out pygobject3 ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Python DBus bindings";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
platforms = dbus.meta.platforms;
|
|
|
|
};
|
|
|
|
}
|