2020-07-14 22:40:36 +02:00
|
|
|
{ lib, fetchFromGitHub, python3Packages, openvpn, dialog, iptables }:
|
2019-01-14 12:22:42 +01:00
|
|
|
|
2020-07-14 22:40:36 +02: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 {
|
2020-07-14 22:40:36 +02:00
|
|
|
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
|
|
|
};
|
|
|
|
|
2020-07-14 22:40:36 +02:00
|
|
|
propagatedBuildInputs = (with python3Packages; [
|
|
|
|
requests
|
|
|
|
docopt
|
|
|
|
setuptools
|
|
|
|
jinja2
|
|
|
|
pythondialog
|
|
|
|
]) ++ [
|
|
|
|
dialog
|
|
|
|
openvpn
|
|
|
|
iptables
|
|
|
|
];
|
2019-01-14 12:22:42 +01:00
|
|
|
|
2020-07-14 22:40:36 +02:00
|
|
|
# No tests
|
|
|
|
doCheck = false;
|
2019-01-14 12:22:42 +01:00
|
|
|
|
2020-07-14 22:40:36 +02: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 ];
|
2021-10-08 18:23:16 +02:00
|
|
|
license = licenses.gpl3Plus;
|
2021-01-21 15:00:04 +01:00
|
|
|
platforms = platforms.linux;
|
2021-10-08 18:23:16 +02:00
|
|
|
mainProgram = "protonvpn";
|
2019-01-14 12:22:42 +01:00
|
|
|
};
|
|
|
|
}
|