protonvpn-cli: 2.2.6 -> 3.11.1

This commit is contained in:
P. R. d. O 2022-05-06 15:26:57 -06:00
parent e2942bccba
commit 0ffb521ac8
No known key found for this signature in database
GPG Key ID: 7B0FF33FF90110C7
2 changed files with 25 additions and 21 deletions

View File

@ -1,37 +1,41 @@
{ lib, fetchFromGitHub, python3Packages, openvpn, dialog, iptables }:
{ lib
, buildPythonApplication
, pythonOlder
, fetchFromGitHub
, protonvpn-nm-lib
, pythondialog
, dialog
}:
python3Packages.buildPythonApplication rec {
pname = "protonvpn-linux-cli";
version = "2.2.6";
buildPythonApplication rec {
pname = "protonvpn-cli";
version = "3.11.1";
format = "setuptools";
disabled = pythonOlder "3.5";
src = fetchFromGitHub {
owner = "protonvpn";
repo = "linux-cli";
rev = "v${version}";
sha256 = "0y7v9ikrmy5dbjlpbpacp08gy838i8z54m8m4ps7ldk1j6kyia3n";
rev = version;
sha256 = "sha256-u+POtUz7NoGS23aOmvDCZPUp2HW1xXGtfbZR88cWCBc=";
};
propagatedBuildInputs = (with python3Packages; [
requests
docopt
setuptools
jinja2
pythondialog
]) ++ [
dialog
openvpn
iptables
];
propagatedBuildInputs = [
protonvpn-nm-lib
pythondialog
dialog
];
# No tests
# Project has a dummy test
doCheck = false;
meta = with lib; {
description = "Linux command-line client for ProtonVPN";
homepage = "https://github.com/protonvpn/linux-cli";
maintainers = with maintainers; [ jtcoolen jefflabonte shamilton ];
maintainers = with maintainers; [ wolfangaukang ];
license = licenses.gpl3Plus;
platforms = platforms.linux;
mainProgram = "protonvpn";
mainProgram = "protonvpn-cli";
};
}

View File

@ -29022,7 +29022,7 @@ with pkgs;
protonmail-bridge = callPackage ../applications/networking/protonmail-bridge { };
protonvpn-cli = callPackage ../applications/networking/protonvpn-cli { };
protonvpn-cli = python3Packages.callPackage ../applications/networking/protonvpn-cli { };
protonvpn-gui = python3Packages.callPackage ../applications/networking/protonvpn-gui { };