2020-07-14 21:40:36 +01:00
|
|
|
{ lib, fetchFromGitHub, python3Packages, openvpn, dialog, iptables }:
|
2019-01-14 11:22:42 +00:00
|
|
|
|
2020-07-14 21:40:36 +01:00
|
|
|
python3Packages.buildPythonApplication rec {
|
|
|
|
pname = "protonvpn-linux-cli";
|
|
|
|
version = "2.2.4";
|
2019-01-14 11:22:42 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2020-07-14 21:40:36 +01:00
|
|
|
owner = "protonvpn";
|
|
|
|
repo = "linux-cli";
|
2019-01-14 11:22:42 +00:00
|
|
|
rev = "v${version}";
|
2020-07-14 21:40:36 +01:00
|
|
|
sha256 = "08yca0a0prrnrc7ir7ajd56yxvxpcs4m1k8f5kf273f5whgr7wzw";
|
2019-01-14 11:22:42 +00:00
|
|
|
};
|
|
|
|
|
2020-07-14 21:40:36 +01:00
|
|
|
propagatedBuildInputs = (with python3Packages; [
|
|
|
|
requests
|
|
|
|
docopt
|
|
|
|
setuptools
|
|
|
|
jinja2
|
|
|
|
pythondialog
|
|
|
|
]) ++ [
|
|
|
|
dialog
|
|
|
|
openvpn
|
|
|
|
iptables
|
|
|
|
];
|
2019-01-14 11:22:42 +00:00
|
|
|
|
2020-07-14 21:40:36 +01:00
|
|
|
# No tests
|
|
|
|
doCheck = false;
|
2019-01-14 11:22:42 +00:00
|
|
|
|
2020-07-14 21:40:36 +01:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Linux command-line client for ProtonVPN";
|
|
|
|
homepage = "https://github.com/protonvpn/linux-cli";
|
|
|
|
maintainers = with maintainers; [ jtcoolen jefflabonte ];
|
|
|
|
license = licenses.gpl3;
|
2019-01-14 11:22:42 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|