nixpkgs/pkgs/applications/networking/protonvpn-cli/default.nix

42 lines
864 B
Nix
Raw Normal View History

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 {
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
doCheck = false;
2019-01-14 14:22:42 +03:00
meta = with lib; {
description = "Linux command-line client for ProtonVPN";
homepage = "https://github.com/protonvpn/linux-cli";
2022-05-07 00:26:57 +03:00
maintainers = with maintainers; [ wolfangaukang ];
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
};
}