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";
25 src = fetchFromGitHub {
28 rev = "refs/tags/${version}";
29 sha256 = "sha256-gsGg9zHVyDTCVZmFUI8qqXDt0ui+o3hPwjRlsYUmShg=";
32 SETUPTOOLS_SCM_PRETEND_VERSION = version;
38 propagatedBuildInputs = [
51 # TODO: Get the rest of these tests running?
52 NOSE_EXCLUDE = lib.concatStringsSep "," [
53 "test_bluez4" # NixOS ships BlueZ5
54 # These appear to fail because they're expecting to run in an Ubuntu chroot?
55 "test_everything" # BlueZ5 OBEX
60 "test_notification_daemon"
62 "test_gnome_screensaver"
67 "test_accounts_service"
68 # needs dbus-daemon active
70 # Very slow, consider disabling?
71 # "test_networkmanager"
81 description = "Mock D-Bus objects for tests";
82 homepage = "https://github.com/martinpitt/python-dbusmock";
83 license = licenses.lgpl3Plus;
84 maintainers = with maintainers; [ callahad ];
85 platforms = platforms.linux;