17 stdenv.mkDerivation (finalAttrs: {
18 pname = "libqtdbustest";
19 version = "unstable-2017-01-06";
22 url = "lp:libqtdbustest";
24 sha256 = "sha256-5MQdGGtEVE/pM9u0B0xFXyITiRln9p+8/MLtrrCZqi8=";
28 # Tests are overly pedantic when looking for launched process names in `ps`, break on python wrapper vs real python
29 # Just check if basename + arguments match, like libqtdbusmock does
30 ./less-pedantic-process-finding.patch
32 # Disable QProcess start timeout
34 url = "https://salsa.debian.org/debian-ayatana-team/libqtdbustest/-/raw/0788df10bc6f2aa47c2b73fc1df944686a9ace1e/debian/patches/1003_no-QProcess-waitForstarted-timeout.patch";
35 hash = "sha256-ThDbn6URvkj5ARDMj+xO0fb1Qh2YQRzVy24O03KglHI=";
38 # More robust dbus address reading
40 url = "https://salsa.debian.org/debian-ayatana-team/libqtdbustest/-/raw/7e55c79cd032c702b30d834c1fb0b65661fc6eeb/debian/patches/1004_make-reading-address-from-dbus-daemon-more-robust.patch";
41 hash = "sha256-hq8pdducp/udxoGWGt1dgL/7VHcbJO/oT1dOY1zew8M=";
47 postPatch = lib.optionalString (!finalAttrs.doCheck) ''
48 # Don't build tests when we're not running them
49 sed -i -e '/add_subdirectory(tests)/d' CMakeLists.txt
66 (python3.withPackages (ps: with ps; [
75 dontWrapQtApps = true;
77 doCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform;
79 enableParallelChecking = false;
84 dbus-test-runner -t make -p test -p "''${enableParallelChecking:+-j $NIX_BUILD_CORES}"
89 passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
92 description = "Library for testing DBus interactions using Qt";
93 homepage = "https://launchpad.net/libqtdbustest";
94 license = licenses.lgpl3Only;
95 platforms = platforms.unix;
96 maintainers = teams.lomiri.members;
97 mainProgram = "qdbus-simple-test-runner";