2022-05-18 14:49:53 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonApplication
|
|
|
|
, pythonOlder
|
|
|
|
, fetchFromGitHub
|
|
|
|
, protonvpn-nm-lib
|
|
|
|
, pythondialog
|
|
|
|
, dialog
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "protonvpn-cli";
|
|
|
|
version = "3.11.1";
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.5";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2020-08-20 17:08:02 +00:00
|
|
|
owner = "protonvpn";
|
|
|
|
repo = "linux-cli";
|
2022-05-18 14:49:53 +00:00
|
|
|
rev = version;
|
|
|
|
sha256 = "sha256-u+POtUz7NoGS23aOmvDCZPUp2HW1xXGtfbZR88cWCBc=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
protonvpn-nm-lib
|
|
|
|
pythondialog
|
|
|
|
dialog
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
# Project has a dummy test
|
2020-08-20 17:08:02 +00:00
|
|
|
doCheck = false;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Linux command-line client for ProtonVPN";
|
|
|
|
homepage = "https://github.com/protonvpn/linux-cli";
|
2022-05-18 14:49:53 +00:00
|
|
|
maintainers = with maintainers; [ wolfangaukang ];
|
2021-10-09 14:59:57 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2021-02-05 17:12:51 +00:00
|
|
|
platforms = platforms.linux;
|
2022-05-18 14:49:53 +00:00
|
|
|
mainProgram = "protonvpn-cli";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|