1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 keyring, 7 proton-core, 8 pytestCheckHook, 9 pytest-cov-stub, 10}: 11 12buildPythonPackage rec { 13 pname = "proton-keyring-linux"; 14 version = "0.2.0"; 15 pyproject = true; 16 17 src = fetchFromGitHub { 18 owner = "ProtonVPN"; 19 repo = "python-proton-keyring-linux"; 20 tag = "v${version}"; 21 hash = "sha256-wT+0S3dGanLwqRrpCooAwy/RDyZDn1aEdJ7eWvwVfiY="; 22 }; 23 24 build-system = [ setuptools ]; 25 26 dependencies = [ 27 keyring 28 proton-core 29 ]; 30 31 pythonImportsCheck = [ 32 "proton.keyring_linux.core" 33 "proton.keyring_linux" 34 ]; 35 36 nativeCheckInputs = [ 37 pytestCheckHook 38 pytest-cov-stub 39 ]; 40 41 meta = { 42 description = "ProtonVPN core component to access Linux's keyring"; 43 homepage = "https://github.com/ProtonVPN/python-proton-keyring-linux"; 44 license = lib.licenses.gpl3Only; 45 maintainers = with lib.maintainers; [ sebtm ]; 46 }; 47}