2022-05-06 22:28:06 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonApplication
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pythonOlder
|
|
|
|
, requests
|
|
|
|
, docopt
|
|
|
|
, pythondialog
|
|
|
|
, jinja2
|
|
|
|
, distro
|
|
|
|
, dialog
|
|
|
|
, iptables
|
|
|
|
, openvpn }:
|
|
|
|
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "protonvpn-cli_2";
|
2024-02-27 15:19:10 +00:00
|
|
|
version = "2.2.12";
|
2022-05-06 22:28:06 +01:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.5";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Rafficer";
|
|
|
|
repo = "linux-cli-community";
|
|
|
|
# There is a tag and branch with the same name
|
|
|
|
rev = "refs/tags/v${version}";
|
2024-02-27 15:19:10 +00:00
|
|
|
sha256 = "sha256-vNbqjdkIRK+MkYRKUUe7W5Ytc1PU1t5ZLr9fPDOZXUs=";
|
2022-05-06 22:28:06 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
requests
|
|
|
|
docopt
|
|
|
|
pythondialog
|
|
|
|
jinja2
|
|
|
|
distro
|
|
|
|
dialog
|
|
|
|
openvpn
|
|
|
|
iptables
|
|
|
|
];
|
|
|
|
|
|
|
|
# No tests
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Linux command-line client for ProtonVPN using Openvpn";
|
|
|
|
homepage = "https://github.com/Rafficer/linux-cli-community";
|
|
|
|
maintainers = with maintainers; [ jtcoolen jefflabonte shamilton ];
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
mainProgram = "protonvpn";
|
|
|
|
};
|
|
|
|
}
|