anchor.diff:      dbus
       pygobject3
       bluez
  -    (lib.getOutput "test" bluez)
  +    pbap-client
       networkmanager
       nose
     ];
  
positive.code:     # "test_networkmanager"
    ];
  
  
    checkPhase = ''
      runHook preCheck
      nosetests -v
  
negative.code: , bluez
  , networkmanager
  , setuptools-scm
  , runCommand
  }:
  
  let
    # Cannot just add it to path in preCheck since that attribute will be passed to
    # mkDerivation even with doCheck = false, causing a dependency cycle.
    pbap-client = runCommand "pbap-client" { } ''
      mkdir -p "$out/bin"
      ln -s "${bluez.test}/test/pbap-client" "$out/bin/pbap-client"
    '';
  in buildPythonPackage rec {
    pname = "python-dbusmock";
    version = "0.28.3";
  
  