Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / proton-vpn-killswitch / default.nix
blob912980453ad9c0c728ad4b94034612e9eccd50f6
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , setuptools
5 , proton-core
6 , pytestCheckHook
7 }:
9 buildPythonPackage rec {
10   pname = "proton-vpn-killswitch";
11   version = "0.4.0";
12   pyproject = true;
14   src = fetchFromGitHub {
15     owner = "ProtonVPN";
16     repo = "python-proton-vpn-killswitch";
17     rev = "v${version}";
18     hash = "sha256-XZqjAhxgIiATJd3JcW2WWUMC1b6+cfZRhXlIPyMUFH8=";
19   };
21   nativeBuildInputs = [
22     setuptools
23   ];
25   propagatedBuildInputs = [
26     proton-core
27   ];
29   postPatch = ''
30     substituteInPlace setup.cfg \
31       --replace "--cov=proton --cov-report=html --cov-report=term" ""
32   '';
34   pythonImportsCheck = [ "proton.vpn.killswitch.interface" ];
36   nativeCheckInputs = [
37     pytestCheckHook
38   ];
40   meta = with lib; {
41     description = "Defines the ProtonVPN kill switch interface";
42     homepage = "https://github.com/ProtonVPN/python-proton-vpn-killswitch";
43     license = licenses.gpl3Only;
44     maintainers = with maintainers; [ wolfangaukang ];
45   };