20 buildPythonPackage rec {
21 pname = "proton-vpn-api-core";
25 src = fetchFromGitHub {
27 repo = "python-proton-vpn-api-core";
29 hash = "sha256-1GmLrX3FLwPoj+RGzPxzw1O7Q7r5M1coJelPhn2CTLI=";
45 pythonImportsCheck = [
47 "proton.vpn.connection"
48 "proton.vpn.killswitch.interface"
63 # Needed for Permission denied: '/homeless-shelter'
64 export HOME=$(mktemp -d)
68 # Permission denied: '/run'
69 "test_ensure_configuration_file_is_created"
70 "test_ovpnconfig_with_certificate"
71 "test_ovpnconfig_with_settings"
72 "test_wireguard_config_content_generation"
73 "test_wireguard_with_non_certificate"
74 "test_ensure_generate_is_returning_expected_content"
75 "test_ensure_same_configuration_file_in_case_of_duplicate"
76 "test_ensure_configuration_file_is_deleted"
80 description = "Acts as a facade to the other Proton VPN components, exposing a uniform API to the available Proton VPN services";
81 homepage = "https://github.com/ProtonVPN/python-proton-vpn-api-core";
82 license = lib.licenses.gpl3Only;
83 platforms = lib.platforms.linux;
84 maintainers = with lib.maintainers; [