about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/networking/protonvpn-cli/2.nix
blob: c8f21cfc0df96feece09f807d2a07f156cabea24 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
{ lib
, buildPythonApplication
, fetchFromGitHub
, pythonOlder
, requests
, docopt
, pythondialog
, jinja2
, distro
, dialog
, iptables
, openvpn }:

buildPythonApplication rec {
  pname = "protonvpn-cli_2";
  version = "2.2.12";
  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}";
    sha256 = "sha256-vNbqjdkIRK+MkYRKUUe7W5Ytc1PU1t5ZLr9fPDOZXUs=";
  };

  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";
  };
}