504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
51 lines
1.3 KiB
Nix
51 lines
1.3 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, gobject-introspection
|
|
, setuptools
|
|
, proton-core
|
|
, proton-vpn-network-manager
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage {
|
|
pname = "proton-vpn-network-manager-openvpn";
|
|
version = "0.0.4-unstable-2023-07-05";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ProtonVPN";
|
|
repo = "python-proton-vpn-network-manager-openvpn";
|
|
rev = "b79f6732646378ef1b92696de3665ff9560286d3";
|
|
hash = "sha256-Z5X8RRu+1KaZ0pnH7tzGhfeST2W8bxMZnuryLhFjG/g=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
# Solves Namespace NM not available
|
|
gobject-introspection
|
|
setuptools
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
proton-core
|
|
proton-vpn-network-manager
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.cfg \
|
|
--replace "--cov=proton.vpn.backend.linux.networkmanager.protocol.openvpn --cov-report html --cov-report term" ""
|
|
'';
|
|
|
|
pythonImportsCheck = [ "proton.vpn.backend.linux.networkmanager.protocol" ];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Adds support for the OpenVPN protocol using NetworkManager";
|
|
homepage = "https://github.com/ProtonVPN/python-proton-vpn-network-manager-openvpn";
|
|
license = licenses.gpl3Only;
|
|
maintainers = with maintainers; [ wolfangaukang ];
|
|
};
|
|
}
|