python3Packages.proton-vpn-killswitch: init at 0.2.0-unstable-2023-09-05

This commit is contained in:
P. 2023-12-05 14:46:52 -06:00
parent f119508cf0
commit ee5c9cc711
No known key found for this signature in database
GPG Key ID: 7B0FF33FF90110C7
2 changed files with 48 additions and 0 deletions

View File

@ -0,0 +1,46 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, setuptools
, proton-core
, pytestCheckHook
}:
buildPythonPackage {
pname = "proton-vpn-killswitch";
version = "0.2.0-unstable-2023-09-05";
pyproject = true;
src = fetchFromGitHub {
owner = "ProtonVPN";
repo = "python-proton-vpn-killswitch";
rev = "6e84588ea6ae0946141d4b44b2cf5df8465d5eba";
hash = "sha256-eFwWN8E+nIDpbut8tkWqXucLhzm7HaLAMBIbAq/X2eo=";
};
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
proton-core
];
postPatch = ''
substituteInPlace setup.cfg \
--replace "--cov=proton --cov-report=html --cov-report=term" ""
'';
pythonImportsCheck = [ "proton.vpn.killswitch.interface" ];
nativeCheckInputs = [
pytestCheckHook
];
meta = with lib; {
description = "Defines the ProtonVPN kill switch interface";
homepage = "https://github.com/ProtonVPN/python-proton-vpn-killswitch";
license = licenses.gpl3Only;
maintainers = with maintainers; [ wolfangaukang ];
};
}

View File

@ -9723,6 +9723,8 @@ self: super: with self; {
proton-core = callPackage ../development/python-modules/proton-core { };
proton-vpn-killswitch = callPackage ../development/python-modules/proton-vpn-killswitch { };
proton-vpn-logger = callPackage ../development/python-modules/proton-vpn-logger { };
proton-vpn-session = callPackage ../development/python-modules/proton-vpn-session { };