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

This commit is contained in:
P. 2023-12-05 15:18:42 -06:00
parent 740207e85b
commit 36245fdd36
No known key found for this signature in database
GPG Key ID: 7B0FF33FF90110C7
2 changed files with 50 additions and 0 deletions

View File

@ -0,0 +1,48 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, setuptools
, keyring
, proton-core
, pytestCheckHook
}:
buildPythonPackage {
pname = "proton-keyring-linux";
version = "0.0.1-unstable-2023-04-14";
pyproject = true;
src = fetchFromGitHub {
owner = "ProtonVPN";
repo = "python-proton-keyring-linux";
rev = "5ff3c7f9a1a162836649502dd23c2fbe1f487d73";
hash = "sha256-4d8ZePG8imURhdNtLbraMRisrTLoRvJ+L2UuuOo3MPM=";
};
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
keyring
proton-core
];
postPatch = ''
substituteInPlace setup.cfg \
--replace "--cov=proton.keyring_linux.core --cov-report html --cov-report term" ""
'';
pythonImportsCheck = [ "proton.keyring_linux.core" ];
nativeCheckInputs = [
pytestCheckHook
];
meta = with lib; {
description = "ProtonVPN core component to access Linux's keyring";
homepage = "https://github.com/ProtonVPN/python-proton-keyring-linux";
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-keyring-linux = callPackage ../development/python-modules/proton-keyring-linux { };
proton-vpn-api-core = callPackage ../development/python-modules/proton-vpn-api-core { };
proton-vpn-connection = callPackage ../development/python-modules/proton-vpn-connection { };