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

36 lines
828 B
Nix
Raw Normal View History

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