Skip to content

Commit d3e4218

Browse files
authored
protonvpn-gui: 4.3.0 -> 4.4.4 (#334674)
2 parents d413e71 + 301d342 commit d3e4218

File tree

16 files changed

+326
-182
lines changed

16 files changed

+326
-182
lines changed
Lines changed: 38 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,46 @@
1-
{ lib
2-
, buildPythonApplication
3-
, fetchFromGitHub
4-
, gobject-introspection
5-
, setuptools
6-
, wrapGAppsHook3
7-
, dbus-python
8-
, packaging
9-
, proton-core
10-
, proton-keyring-linux
11-
, proton-keyring-linux-secretservice
12-
, proton-vpn-api-core
13-
, proton-vpn-connection
14-
, proton-vpn-killswitch
15-
, proton-vpn-killswitch-network-manager
16-
, proton-vpn-logger
17-
, proton-vpn-network-manager
18-
, proton-vpn-network-manager-openvpn
19-
, proton-vpn-session
20-
, pycairo
21-
, pygobject3
22-
, pytest-cov-stub
23-
, pytestCheckHook
24-
, withIndicator ? true
25-
, libappindicator-gtk3
26-
, libayatana-appindicator
1+
{
2+
lib,
3+
buildPythonApplication,
4+
fetchFromGitHub,
5+
gobject-introspection,
6+
setuptools,
7+
wrapGAppsHook3,
8+
dbus-python,
9+
packaging,
10+
proton-core,
11+
proton-keyring-linux,
12+
proton-keyring-linux-secretservice,
13+
proton-vpn-api-core,
14+
proton-vpn-connection,
15+
proton-vpn-killswitch,
16+
proton-vpn-killswitch-network-manager,
17+
proton-vpn-logger,
18+
proton-vpn-network-manager,
19+
proton-vpn-network-manager-openvpn,
20+
proton-vpn-network-manager-wireguard,
21+
proton-vpn-session,
22+
pycairo,
23+
pygobject3,
24+
withIndicator ? true,
25+
libappindicator-gtk3,
26+
libayatana-appindicator,
2727
}:
2828

2929
buildPythonApplication rec {
3030
pname = "protonvpn-gui";
31-
version = "4.3.0";
31+
version = "4.4.4";
3232
pyproject = true;
3333

3434
src = fetchFromGitHub {
3535
owner = "ProtonVPN";
3636
repo = "proton-vpn-gtk-app";
3737
rev = "refs/tags/v${version}";
38-
hash = "sha256-H4m4u9zksab47W5aIsQZPQTPEYiXbmrVCnT67b+A5Tc=";
38+
hash = "sha256-e581FgXrk1cfjsl/UaG9M+3VBYXcV0mggeLeEW9s9KM=";
3939
};
4040

4141
nativeBuildInputs = [
4242
# Needed for the NM namespace
4343
gobject-introspection
44-
setuptools
4544
wrapGAppsHook3
4645
];
4746

@@ -52,7 +51,11 @@ buildPythonApplication rec {
5251
libayatana-appindicator
5352
];
5453

55-
propagatedBuildInputs = [
54+
build-system = [
55+
setuptools
56+
];
57+
58+
dependencies = [
5659
dbus-python
5760
packaging
5861
proton-core
@@ -65,6 +68,7 @@ buildPythonApplication rec {
6568
proton-vpn-logger
6669
proton-vpn-network-manager
6770
proton-vpn-network-manager-openvpn
71+
proton-vpn-network-manager-wireguard
6872
proton-vpn-session
6973
pycairo
7074
pygobject3
@@ -76,11 +80,6 @@ buildPythonApplication rec {
7680
install -Dm 644 ${src}/rpmbuild/SOURCES/proton-vpn-logo.svg $out/share/pixmaps
7781
'';
7882

79-
nativeCheckInputs = [
80-
pytest-cov-stub
81-
pytestCheckHook
82-
];
83-
8483
preCheck = ''
8584
# Needed for Permission denied: '/homeless-shelter'
8685
export HOME=$(mktemp -d)
@@ -89,12 +88,12 @@ buildPythonApplication rec {
8988
# Gets a segmentation fault after the widgets test
9089
doCheck = false;
9190

92-
meta = with lib; {
91+
meta = {
9392
description = "Proton VPN GTK app for Linux";
9493
homepage = "https://github.com/ProtonVPN/proton-vpn-gtk-app";
95-
license = licenses.gpl3Plus;
96-
platforms = platforms.linux;
94+
license = lib.licenses.gpl3Plus;
95+
platforms = lib.platforms.linux;
9796
mainProgram = "protonvpn-app";
98-
maintainers = [ ];
97+
maintainers = with lib.maintainers; [ sebtm ];
9998
};
10099
}

pkgs/applications/networking/protonvpn-gui/legacy.nix

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,24 @@
1-
{ lib
2-
, buildPythonApplication
3-
, fetchFromGitHub
4-
, setuptools
5-
, wrapGAppsHook3
6-
, gdk-pixbuf
7-
, glib-networking
8-
, gobject-introspection
9-
, imagemagick
10-
, librsvg
11-
, pango
12-
, python3
13-
, webkitgtk
14-
# Python libs
15-
, protonvpn-nm-lib
16-
, psutil
17-
# Optionals
18-
, withIndicator ? true
19-
, libappindicator-gtk3 }:
1+
{
2+
lib,
3+
buildPythonApplication,
4+
fetchFromGitHub,
5+
setuptools,
6+
wrapGAppsHook3,
7+
gdk-pixbuf,
8+
glib-networking,
9+
gobject-introspection,
10+
imagemagick,
11+
librsvg,
12+
pango,
13+
python3,
14+
webkitgtk,
15+
# Python libs
16+
protonvpn-nm-lib,
17+
psutil,
18+
# Optionals
19+
withIndicator ? true,
20+
libappindicator-gtk3,
21+
}:
2022

2123
buildPythonApplication rec {
2224
pname = "protonvpn-gui";

pkgs/development/python-modules/proton-core/default.nix

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,38 +9,39 @@
99
python-gnupg,
1010
requests,
1111
pytestCheckHook,
12+
pyotp,
13+
pytest-cov-stub,
1214
}:
1315

1416
buildPythonPackage rec {
1517
pname = "proton-core";
16-
version = "0.1.16";
18+
version = "0.2.0";
1719
pyproject = true;
1820

1921
src = fetchFromGitHub {
2022
owner = "ProtonVPN";
2123
repo = "python-proton-core";
2224
rev = "refs/tags/v${version}";
23-
hash = "sha256-072XuHvgWludlFwp/tqLpuAU89vzifFhwQ01FuiCoL8=";
25+
hash = "sha256-IiKmtgcCSe2q3qaNuUSaC/D/vSQzVq7w8VN2Xq81+tQ=";
2426
};
2527

26-
nativeBuildInputs = [ setuptools ];
28+
build-system = [ setuptools ];
2729

28-
propagatedBuildInputs = [
30+
dependencies = [
2931
bcrypt
3032
aiohttp
3133
pyopenssl
3234
python-gnupg
3335
requests
3436
];
3537

36-
postPatch = ''
37-
substituteInPlace setup.cfg \
38-
--replace "--cov=proton --cov-report html --cov-report term" ""
39-
'';
40-
4138
pythonImportsCheck = [ "proton" ];
4239

43-
nativeCheckInputs = [ pytestCheckHook ];
40+
nativeCheckInputs = [
41+
pytestCheckHook
42+
pytest-cov-stub
43+
pyotp
44+
];
4445

4546
disabledTestPaths = [
4647
# Single test, requires internet connection
@@ -68,6 +69,6 @@ buildPythonPackage rec {
6869
description = "Core logic used by the other Proton components";
6970
homepage = "https://github.com/ProtonVPN/python-proton-core";
7071
license = lib.licenses.gpl3Only;
71-
maintainers = [ ];
72+
maintainers = with lib.maintainers; [ sebtm ];
7273
};
7374
}

pkgs/development/python-modules/proton-keyring-linux-secretservice/default.nix

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
setuptools,
66
proton-keyring-linux,
77
pytestCheckHook,
8+
pytest-cov-stub,
89
}:
910

1011
buildPythonPackage rec {
@@ -19,23 +20,21 @@ buildPythonPackage rec {
1920
hash = "sha256-IZPT2bL/1YD2TH/djwIQHUE1RRbYMTkQDacjjoqDQWo=";
2021
};
2122

22-
nativeBuildInputs = [ setuptools ];
23+
build-system = [ setuptools ];
2324

24-
propagatedBuildInputs = [ proton-keyring-linux ];
25-
26-
postPatch = ''
27-
substituteInPlace setup.cfg \
28-
--replace "--cov=proton.keyring_linux.secretservice --cov-report html --cov-report term" ""
29-
'';
25+
dependencies = [ proton-keyring-linux ];
3026

3127
pythonImportsCheck = [ "proton.keyring_linux" ];
3228

33-
nativeCheckInputs = [ pytestCheckHook ];
29+
nativeCheckInputs = [
30+
pytestCheckHook
31+
pytest-cov-stub
32+
];
3433

35-
meta = with lib; {
34+
meta = {
3635
description = "ProtonVPN component to access Linux's keyring secret service API";
3736
homepage = "https://github.com/ProtonVPN/python-proton-keyring-linux-secretservice";
38-
license = licenses.gpl3Only;
39-
maintainers = [ ];
37+
license = lib.licenses.gpl3Only;
38+
maintainers = with lib.maintainers; [ sebtm ];
4039
};
4140
}

pkgs/development/python-modules/proton-keyring-linux/default.nix

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
keyring,
77
proton-core,
88
pytestCheckHook,
9+
pytest-cov-stub,
910
}:
1011

1112
buildPythonPackage rec {
@@ -20,26 +21,24 @@ buildPythonPackage rec {
2021
hash = "sha256-c2wdbd8Hkz2hF9zYMy4/V/W6uZRItz7tWqLJqTsJoHU=";
2122
};
2223

23-
nativeBuildInputs = [ setuptools ];
24+
build-system = [ setuptools ];
2425

25-
propagatedBuildInputs = [
26+
dependencies = [
2627
keyring
2728
proton-core
2829
];
2930

30-
postPatch = ''
31-
substituteInPlace setup.cfg \
32-
--replace "--cov=proton.keyring_linux.core --cov-report html --cov-report term" ""
33-
'';
34-
3531
pythonImportsCheck = [ "proton.keyring_linux.core" ];
3632

37-
nativeCheckInputs = [ pytestCheckHook ];
33+
nativeCheckInputs = [
34+
pytestCheckHook
35+
pytest-cov-stub
36+
];
3837

39-
meta = with lib; {
38+
meta = {
4039
description = "ProtonVPN core component to access Linux's keyring";
4140
homepage = "https://github.com/ProtonVPN/python-proton-keyring-linux";
42-
license = licenses.gpl3Only;
43-
maintainers = [ ];
41+
license = lib.licenses.gpl3Only;
42+
maintainers = with lib.maintainers; [ sebtm ];
4443
};
4544
}

pkgs/development/python-modules/proton-vpn-api-core/default.nix

Lines changed: 24 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,24 @@
1111
sentry-sdk,
1212
distro,
1313
pytestCheckHook,
14+
pytest-cov-stub,
1415
}:
1516

1617
buildPythonPackage rec {
1718
pname = "proton-vpn-api-core";
18-
version = "0.22.3";
19+
version = "0.32.2";
1920
pyproject = true;
2021

2122
src = fetchFromGitHub {
2223
owner = "ProtonVPN";
2324
repo = "python-proton-vpn-api-core";
24-
rev = "refs/tags/v${version}";
25-
hash = "sha256-BGei6tw6VTKkHmaIWa2VJfKOL5cRUbauOQ7zp1RY9Bo=";
25+
rev = "v${version}";
26+
hash = "sha256-n4TZkp2ZMSJ1w1wQUMsAhX8kmWu59udlsXXEhIM83mI=";
2627
};
2728

28-
nativeBuildInputs = [ setuptools ];
29+
build-system = [ setuptools ];
2930

30-
propagatedBuildInputs = [
31+
dependencies = [
3132
distro
3233
proton-core
3334
proton-vpn-connection
@@ -37,24 +38,33 @@ buildPythonPackage rec {
3738
sentry-sdk
3839
];
3940

40-
postPatch = ''
41-
substituteInPlace setup.cfg \
42-
--replace-fail "--cov=proton/vpn/core/ --cov-report html --cov-report term" ""
43-
'';
44-
4541
pythonImportsCheck = [ "proton.vpn.core" ];
4642

47-
nativeCheckInputs = [ pytestCheckHook ];
43+
nativeCheckInputs = [
44+
pytestCheckHook
45+
pytest-cov-stub
46+
];
4847

4948
preCheck = ''
5049
# Needed for Permission denied: '/homeless-shelter'
5150
export HOME=$(mktemp -d)
5251
'';
5352

54-
meta = with lib; {
53+
disabledTests = [
54+
# Permission denied: '/run'
55+
"test_ensure_configuration_file_is_created"
56+
"test_ovpnconfig_with_settings"
57+
"test_wireguard_config_content_generation"
58+
"test_wireguard_with_non_certificate"
59+
"test_ensure_generate_is_returning_expected_content"
60+
"test_ensure_same_configuration_file_in_case_of_duplicate"
61+
"test_ensure_configuration_file_is_deleted"
62+
];
63+
64+
meta = {
5565
description = "Acts as a facade to the other Proton VPN components, exposing a uniform API to the available Proton VPN services";
5666
homepage = "https://github.com/ProtonVPN/python-proton-vpn-api-core";
57-
license = licenses.gpl3Only;
58-
maintainers = [ ];
67+
license = lib.licenses.gpl3Only;
68+
maintainers = with lib.maintainers; [ sebtm ];
5969
};
6070
}

0 commit comments

Comments
 (0)