cd7a40546e
This upgrades dbus-python to the 1.2.16 release. Reason for this version upgrade is a the failing hamster application (see. programs.hamster). With a 1.2.12 dbus-python version hamster can not start and fails with: Traceback (most recent call last): File "/nix/store/5ax21lyiprc9v5l3pl7dbfr2hqbrh970-hamster-3.0.2/bin/.hamster-wrapped", line 41, in <module> from hamster import client, reports File "/nix/store/5ax21lyiprc9v5l3pl7dbfr2hqbrh970-hamster-3.0.2/lib/python3.8/site-packages/hamster/client.py", line 46, in <module> assert not ( AssertionError: python3.8 changed str(<dbus integers>). That broke hamster (https://github.com/projecthamster/hamster/issues/477). Please upgrade to dbus-python >= 1.2.14.
37 lines
840 B
Nix
37 lines
840 B
Nix
{ lib, fetchPypi, buildPythonPackage, python, pkgconfig, dbus, dbus-glib, isPyPy
|
|
, ncurses, pygobject3 }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "dbus-python";
|
|
version = "1.2.16";
|
|
format = "other";
|
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "196m5rk3qzw5nkmgzjl7wmq0v7vpwfhh8bz2sapdi5f9hqfqy8qi";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|