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