python3Packages.proton-keyring-linux-secretservice: init at 0.0.1-unstable-2023-04-14

This commit is contained in:
P. 2023-12-05 15:21:24 -06:00
parent 36245fdd36
commit bbadbae8b7
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-keyring-linux
, pytestCheckHook
}:
buildPythonPackage {
pname = "proton-keyring-linux-secretservice";
version = "0.0.1-unstable-2023-04-14";
pyproject = true;
src = fetchFromGitHub {
owner = "ProtonVPN";
repo = "python-proton-keyring-linux-secretservice";
rev = "973d2646ec4d04bc270df53058df892950244e70";
hash = "sha256-JlhvJBpbewT2c8k31CPMUlvvo/orWW1qfylFZLnDxeY=";
};
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
proton-keyring-linux
];
postPatch = ''
substituteInPlace setup.cfg \
--replace "--cov=proton.keyring_linux.secretservice --cov-report html --cov-report term" ""
'';
pythonImportsCheck = [ "proton.keyring_linux" ];
nativeCheckInputs = [
pytestCheckHook
];
meta = with lib; {
description = "ProtonVPN component to access Linux's keyring secret service API";
homepage = "https://github.com/ProtonVPN/python-proton-keyring-linux-secretservice";
license = licenses.gpl3Only;
maintainers = with maintainers; [ wolfangaukang ];
};
}

View File

@ -9725,6 +9725,8 @@ self: super: with self; {
proton-keyring-linux = callPackage ../development/python-modules/proton-keyring-linux { };
proton-keyring-linux-secretservice = callPackage ../development/python-modules/proton-keyring-linux-secretservice { };
proton-vpn-api-core = callPackage ../development/python-modules/proton-vpn-api-core { };
proton-vpn-connection = callPackage ../development/python-modules/proton-vpn-connection { };