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