proton-vpn-network-manager-wireguard: init at 0.4.1

This commit is contained in:
Sebastian Sellmeier 2024-09-05 19:23:05 +02:00
parent f497d48d29
commit b287e96043
No known key found for this signature in database
GPG Key ID: 51E2BE0CCC826F98
2 changed files with 56 additions and 0 deletions

View File

@ -0,0 +1,54 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
gobject-introspection,
setuptools,
proton-core,
proton-vpn-killswitch-network-manager-wireguard,
proton-vpn-network-manager,
pytestCheckHook,
pytest-cov-stub,
}:
buildPythonPackage rec {
pname = "proton-vpn-network-manager-wireguard";
version = "0.4.1";
pyproject = true;
src = fetchFromGitHub {
owner = "ProtonVPN";
repo = "python-proton-vpn-network-manager-wireguard";
rev = "v${version}";
hash = "sha256-DZXixcm2VwXhbN4buABlkybDgXIg/mbeUVHOpdoj0Kw=";
};
nativeBuildInputs = [
# Solves Namespace NM not available
gobject-introspection
setuptools
];
propagatedBuildInputs = [
proton-core
proton-vpn-killswitch-network-manager-wireguard
proton-vpn-network-manager
];
preCheck = ''
# Needed for Permission denied: '/homeless-shelter'
export HOME=$(mktemp -d)
'';
nativeCheckInputs = [
pytestCheckHook
pytest-cov-stub
];
meta = {
description = "Adds support for the Wireguard protocol using NetworkManager";
homepage = "https://github.com/ProtonVPN/python-proton-vpn-network-manager-wireguard";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ sebtm ];
};
}

View File

@ -10615,6 +10615,8 @@ self: super: with self; {
proton-vpn-network-manager-openvpn = callPackage ../development/python-modules/proton-vpn-network-manager-openvpn { };
proton-vpn-network-manager-wireguard = callPackage ../development/python-modules/proton-vpn-network-manager-wireguard { };
proton-vpn-session = callPackage ../development/python-modules/proton-vpn-session { };
protonup-ng = callPackage ../development/python-modules/protonup-ng { };