18 buildPythonPackage rec {
19 pname = "proton-vpn-killswitch-network-manager-wireguard";
23 src = fetchFromGitHub {
25 repo = "python-proton-vpn-killswitch-network-manager-wireguard";
27 hash = "sha256-4sYD2X1U066FMjrtbTb31wvkCDWAw+eXod+pi0gGsCQ=";
31 # Solves ImportError: cannot import name NM, introspection typelib not found
40 # Needed here for the NM namespace
50 substituteInPlace proton/vpn/killswitch/backend/linux/wireguard/killswitch_connection_handler.py \
51 --replace '/usr/sbin/ip' '${iproute2}/bin/ip'
54 pythonImportsCheck = [ "proton.vpn.killswitch.backend.linux.wireguard" ];
62 description = "Implementation of the proton-vpn-killswitch interface using Network Manager with wireguard-protocol";
63 homepage = "https://github.com/ProtonVPN/proton-vpn-killswitch-network-manager-wireguard";
64 license = lib.licenses.gpl3Only;
65 maintainers = with lib.maintainers; [ sebtm ];