2020-03-04 16:32:15 +00:00
|
|
|
{ lib, fetchFromGitHub, python3Packages, openvpn, dialog, iptables }:
|
2020-01-09 22:35:00 +00:00
|
|
|
|
|
|
|
python3Packages.buildPythonApplication rec {
|
2020-03-04 16:32:15 +00:00
|
|
|
pname = "protonvpn-cli-ng";
|
|
|
|
version = "2.2.2";
|
2020-01-09 22:35:00 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "protonvpn";
|
2020-03-04 16:32:15 +00:00
|
|
|
repo = "${pname}";
|
2020-01-09 22:35:00 +00:00
|
|
|
rev = "v${version}";
|
2020-03-04 16:32:15 +00:00
|
|
|
sha256 = "0ixjb02kj4z79whm1izd8mrn2h0rp9cmw4im1qvp93rahqxdd4n8";
|
2020-01-09 22:35:00 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = (with python3Packages; [
|
|
|
|
requests
|
|
|
|
docopt
|
|
|
|
setuptools
|
|
|
|
pythondialog
|
|
|
|
]) ++ [
|
|
|
|
dialog
|
|
|
|
openvpn
|
2020-03-04 16:32:15 +00:00
|
|
|
iptables
|
2020-01-09 22:35:00 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
# No tests
|
|
|
|
doCheck = false;
|
|
|
|
|
2020-03-04 16:32:15 +00:00
|
|
|
meta = with lib; {
|
2020-01-09 22:35:00 +00:00
|
|
|
description = "Linux command-line client for ProtonVPN";
|
|
|
|
homepage = "https://github.com/protonvpn/protonvpn-cli-ng";
|
2020-03-04 16:32:15 +00:00
|
|
|
maintainers = with maintainers; [ jtcoolen jefflabonte ];
|
2020-01-09 22:35:00 +00:00
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|