anchor.diff:  { lib, buildPythonApplication, fetchFromGitHub, wrapGAppsHook
   , pytestCheckHook
  +, fetchpatch
   , gtk3, gobject-introspection, libappindicator-gtk3, librsvg
   , evdev, pygobject3, pylibacl, bluez, vdf
   , linuxHeaders
  
positive.code: 
  buildPythonApplication rec {
    pname = "sc-controller";
    version = "0.4.8.7";
  
    src = fetchFromGitHub {
      owner  = "Ryochan7";
      repo   = pname;
      rev    = "v${version}";
      sha256 = "03514sb1spaxdr7x1gq7b54z74in4kd060adj6sq1xjj6d9b297i";
    };
  
    # see https://github.com/NixOS/nixpkgs/issues/56943
  
negative.code:   propagatedBuildInputs = [ evdev pygobject3 pylibacl vdf ];
  
    checkInputs = [ pytestCheckHook ];
  
    patches = [
      # Fix a broken test
      (fetchpatch {
        url = "https://github.com/Ryochan7/sc-controller/pull/73.patch";
        sha256 = "sha256-qU8hIReZE3cEPCMOFc4RCUCIhiS0gJ3PushMkfDlPns=";
       })
    ];
  
    postPatch = ''
      substituteInPlace scc/paths.py --replace sys.prefix "'$out'"
  