2022-05-06 21:26:57 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonApplication
|
|
|
|
, pythonOlder
|
|
|
|
, fetchFromGitHub
|
|
|
|
, protonvpn-nm-lib
|
|
|
|
, pythondialog
|
|
|
|
, dialog
|
|
|
|
}:
|
2019-01-14 11:22:42 +00:00
|
|
|
|
2022-05-06 21:26:57 +00:00
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "protonvpn-cli";
|
2022-09-16 17:19:50 +00:00
|
|
|
version = "3.13.0";
|
2022-05-06 21:26:57 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.5";
|
2019-01-14 11:22:42 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2020-07-14 20:40:36 +00:00
|
|
|
owner = "protonvpn";
|
|
|
|
repo = "linux-cli";
|
2022-09-16 17:19:50 +00:00
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
sha256 = "sha256-KhfogC23i7THe6YZJ6Sy1+q83vZupHsS69NurHCeo8I=";
|
2019-01-14 11:22:42 +00:00
|
|
|
};
|
|
|
|
|
2022-05-06 21:26:57 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
protonvpn-nm-lib
|
|
|
|
pythondialog
|
|
|
|
dialog
|
|
|
|
];
|
2019-01-14 11:22:42 +00:00
|
|
|
|
2022-05-06 21:26:57 +00:00
|
|
|
# Project has a dummy test
|
2020-07-14 20:40:36 +00:00
|
|
|
doCheck = false;
|
2019-01-14 11:22:42 +00:00
|
|
|
|
2020-07-14 20:40:36 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Linux command-line client for ProtonVPN";
|
|
|
|
homepage = "https://github.com/protonvpn/linux-cli";
|
2022-05-06 21:26:57 +00:00
|
|
|
maintainers = with maintainers; [ wolfangaukang ];
|
2021-10-08 16:23:16 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2021-01-21 14:00:04 +00:00
|
|
|
platforms = platforms.linux;
|
2022-05-06 21:26:57 +00:00
|
|
|
mainProgram = "protonvpn-cli";
|
2019-01-14 11:22:42 +00:00
|
|
|
};
|
|
|
|
}
|