20 buildPythonPackage rec {
21 pname = "proton-vpn-api-core";
25 src = fetchFromGitHub {
27 repo = "python-proton-vpn-api-core";
29 hash = "sha256-YdBsA8qKcWpR+L/I9rEFntR448kaxEjYuGDPS1ynsMU=";
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_settings"
71 "test_wireguard_config_content_generation"
72 "test_wireguard_with_non_certificate"
73 "test_ensure_generate_is_returning_expected_content"
74 "test_ensure_same_configuration_file_in_case_of_duplicate"
75 "test_ensure_configuration_file_is_deleted"
79 description = "Acts as a facade to the other Proton VPN components, exposing a uniform API to the available Proton VPN services";
80 homepage = "https://github.com/ProtonVPN/python-proton-vpn-api-core";
81 license = lib.licenses.gpl3Only;
82 maintainers = with lib.maintainers; [ sebtm ];