anchor.diff:  , ncurses
   , networkmanager
   , pkgs-systemd
  +, python
   , xdg-utils
  +, makeWrapper
   }:
   
   buildPythonPackage rec {
  
positive.code:   src = fetchFromGitHub {
      owner = "ProtonVPN";
      repo = pname;
      rev = "refs/tags/${version}";
      sha256 = "sha256-kfOLhM0/jzHj+KlDrnCe571Bcmv8TvuAbXMpt3uR2L0=";
    };
  
  
negative.code:     })
    ];
  
    postPatch = ''
      substituteInPlace protonvpn_nm_lib/core/dbus/dbus_reconnect.py \
        --replace "exec_start = python_interpreter_path + \" \" + python_service_path" "exec_start = \"$out/bin/protonvpn_reconnector.py\""
    '';
  
    postInstall = ''
      makeWrapper ${python.interpreter} $out/bin/protonvpn_reconnector.py \
        --add-flags $out/${python.sitePackages}/protonvpn_nm_lib/daemon/dbus_daemon_reconnector.py \
        --prefix PYTHONPATH : "$PYTHONPATH"
    '';
  
    # Checks cannot be run in the sandbox
    # "Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory"
    doCheck = false;
  