Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / proton-keyring-linux-secretservice / default.nix
blobdb8a0d14cdb315700bf8fc0f62dcb4c4f3a07053
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , setuptools
5 , proton-keyring-linux
6 , pytestCheckHook
7 }:
9 buildPythonPackage rec {
10   pname = "proton-keyring-linux-secretservice";
11   version = "0.0.2";
12   pyproject = true;
14   src = fetchFromGitHub {
15     owner = "ProtonVPN";
16     repo = "python-proton-keyring-linux-secretservice";
17     rev = "refs/tags/v${version}";
18     hash = "sha256-IZPT2bL/1YD2TH/djwIQHUE1RRbYMTkQDacjjoqDQWo=";
19   };
21   nativeBuildInputs = [
22     setuptools
23   ];
25   propagatedBuildInputs = [
26     proton-keyring-linux
27   ];
29   postPatch = ''
30     substituteInPlace setup.cfg \
31       --replace "--cov=proton.keyring_linux.secretservice --cov-report html --cov-report term" ""
32   '';
34   pythonImportsCheck = [ "proton.keyring_linux" ];
36   nativeCheckInputs = [
37     pytestCheckHook
38   ];
40   meta = with lib; {
41     description = "ProtonVPN component to access Linux's keyring secret service API";
42     homepage = "https://github.com/ProtonVPN/python-proton-keyring-linux-secretservice";
43     license = licenses.gpl3Only;
44     maintainers = with maintainers; [ wolfangaukang ];
45   };