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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
884 B
Nix
Raw Normal View History

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