1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 proton-keyring-linux,
7 pytestCheckHook,
8}:
9
10buildPythonPackage rec {
11 pname = "proton-keyring-linux-secretservice";
12 version = "0.0.2";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "ProtonVPN";
17 repo = "python-proton-keyring-linux-secretservice";
18 rev = "refs/tags/v${version}";
19 hash = "sha256-IZPT2bL/1YD2TH/djwIQHUE1RRbYMTkQDacjjoqDQWo=";
20 };
21
22 nativeBuildInputs = [ setuptools ];
23
24 propagatedBuildInputs = [ proton-keyring-linux ];
25
26 postPatch = ''
27 substituteInPlace setup.cfg \
28 --replace "--cov=proton.keyring_linux.secretservice --cov-report html --cov-report term" ""
29 '';
30
31 pythonImportsCheck = [ "proton.keyring_linux" ];
32
33 nativeCheckInputs = [ pytestCheckHook ];
34
35 meta = with lib; {
36 description = "ProtonVPN component to access Linux's keyring secret service API";
37 homepage = "https://github.com/ProtonVPN/python-proton-keyring-linux-secretservice";
38 license = licenses.gpl3Only;
39 maintainers = with maintainers; [ wolfangaukang ];
40 };
41}