nixpkgs/pkgs/applications/networking/protonvpn-cli/default.nix

38 lines
884 B
Nix
Raw Normal View History

{ lib, fetchFromGitHub, python3Packages, openvpn, dialog, iptables }:
2019-01-14 12:22:42 +01:00
python3Packages.buildPythonApplication rec {
pname = "protonvpn-linux-cli";
2021-01-21 15:00:04 +01:00
version = "2.2.6";
2019-01-14 12:22:42 +01:00
src = fetchFromGitHub {
owner = "protonvpn";
repo = "linux-cli";
2019-01-14 12:22:42 +01:00
rev = "v${version}";
2021-01-21 15:00:04 +01:00
sha256 = "0y7v9ikrmy5dbjlpbpacp08gy838i8z54m8m4ps7ldk1j6kyia3n";
2019-01-14 12:22:42 +01:00
};
propagatedBuildInputs = (with python3Packages; [
requests
docopt
setuptools
jinja2
pythondialog
]) ++ [
dialog
openvpn
iptables
];
2019-01-14 12:22:42 +01:00
# No tests
doCheck = false;
2019-01-14 12:22:42 +01:00
meta = with lib; {
description = "Linux command-line client for ProtonVPN";
homepage = "https://github.com/protonvpn/linux-cli";
2021-01-21 15:00:04 +01:00
maintainers = with maintainers; [ jtcoolen jefflabonte shamilton ];
license = licenses.gpl3Plus;
2021-01-21 15:00:04 +01:00
platforms = platforms.linux;
mainProgram = "protonvpn";
2019-01-14 12:22:42 +01:00
};
}