15 # Cannot just add it to path in preCheck since that attribute will be passed to
16 # mkDerivation even with doCheck = false, causing a dependency cycle.
17 pbap-client = runCommand "pbap-client" { } ''
19 ln -s "${bluez.test}/test/pbap-client" "$out/bin/pbap-client"
21 in buildPythonPackage rec {
22 pname = "python-dbusmock";
24 format = "setuptools";
26 src = fetchFromGitHub {
29 rev = "refs/tags/${version}";
30 hash = "sha256-DdV78o089Jkc7mSsGvlJgVpv8kPpMILo7lC6EbLxkxg=";
37 propagatedBuildInputs = [
50 # TODO: Get the rest of these tests running?
51 NOSE_EXCLUDE = lib.concatStringsSep "," [
52 "test_bluez4" # NixOS ships BlueZ5
53 # These appear to fail because they're expecting to run in an Ubuntu chroot?
54 "test_everything" # BlueZ5 OBEX
59 "test_notification_daemon"
61 "test_gnome_screensaver"
66 "test_accounts_service"
67 # needs dbus-daemon active
69 # Very slow, consider disabling?
70 # "test_networkmanager"
80 description = "Mock D-Bus objects for tests";
81 homepage = "https://github.com/martinpitt/python-dbusmock";
82 license = licenses.lgpl3Plus;
83 maintainers = with maintainers; [ callahad ];
84 platforms = platforms.linux;