protonvpn-gui/proton-*: refactor to use build-system and dependencies
This commit is contained in:
@@ -55,7 +55,7 @@ buildPythonApplication rec {
|
||||
setuptools
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
dependencies = [
|
||||
dbus-python
|
||||
packaging
|
||||
proton-core
|
||||
@@ -80,6 +80,11 @@ buildPythonApplication rec {
|
||||
install -Dm 644 ${src}/rpmbuild/SOURCES/proton-vpn-logo.svg $out/share/pixmaps
|
||||
'';
|
||||
|
||||
preCheck = ''
|
||||
# Needed for Permission denied: '/homeless-shelter'
|
||||
export HOME=$(mktemp -d)
|
||||
'';
|
||||
|
||||
# Gets a segmentation fault after the widgets test
|
||||
doCheck = false;
|
||||
|
||||
|
||||
@@ -25,9 +25,9 @@ buildPythonPackage rec {
|
||||
hash = "sha256-IiKmtgcCSe2q3qaNuUSaC/D/vSQzVq7w8VN2Xq81+tQ=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ setuptools ];
|
||||
build-system = [ setuptools ];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
dependencies = [
|
||||
bcrypt
|
||||
aiohttp
|
||||
pyopenssl
|
||||
|
||||
@@ -20,9 +20,9 @@ buildPythonPackage rec {
|
||||
hash = "sha256-IZPT2bL/1YD2TH/djwIQHUE1RRbYMTkQDacjjoqDQWo=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ setuptools ];
|
||||
build-system = [ setuptools ];
|
||||
|
||||
propagatedBuildInputs = [ proton-keyring-linux ];
|
||||
dependencies = [ proton-keyring-linux ];
|
||||
|
||||
pythonImportsCheck = [ "proton.keyring_linux" ];
|
||||
|
||||
|
||||
@@ -21,9 +21,9 @@ buildPythonPackage rec {
|
||||
hash = "sha256-c2wdbd8Hkz2hF9zYMy4/V/W6uZRItz7tWqLJqTsJoHU=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ setuptools ];
|
||||
build-system = [ setuptools ];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
dependencies = [
|
||||
keyring
|
||||
proton-core
|
||||
];
|
||||
|
||||
@@ -26,9 +26,9 @@ buildPythonPackage rec {
|
||||
hash = "sha256-n4TZkp2ZMSJ1w1wQUMsAhX8kmWu59udlsXXEhIM83mI=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ setuptools ];
|
||||
build-system = [ setuptools ];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
dependencies = [
|
||||
distro
|
||||
proton-core
|
||||
proton-vpn-connection
|
||||
|
||||
@@ -23,9 +23,9 @@ buildPythonPackage rec {
|
||||
hash = "sha256-Ze/te0G0tDzyZPGVVqvuJlZoHWJqJ36LnHO+Cy5nxx8=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ setuptools ];
|
||||
build-system = [ setuptools ];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
dependencies = [
|
||||
jinja2
|
||||
proton-core
|
||||
proton-vpn-killswitch
|
||||
|
||||
+4
-1
@@ -30,10 +30,13 @@ buildPythonPackage rec {
|
||||
nativeBuildInputs = [
|
||||
# Solves ImportError: cannot import name NM, introspection typelib not found
|
||||
gobject-introspection
|
||||
];
|
||||
|
||||
build-system = [
|
||||
setuptools
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
dependencies = [
|
||||
# Needed here for the NM namespace
|
||||
networkmanager
|
||||
proton-vpn-api-core
|
||||
|
||||
@@ -29,10 +29,13 @@ buildPythonPackage rec {
|
||||
nativeBuildInputs = [
|
||||
# Solves ImportError: cannot import name NM, introspection typelib not found
|
||||
gobject-introspection
|
||||
];
|
||||
|
||||
build-system = [
|
||||
setuptools
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
dependencies = [
|
||||
# Needed here for the NM namespace
|
||||
networkmanager
|
||||
proton-vpn-api-core
|
||||
|
||||
@@ -20,9 +20,9 @@ buildPythonPackage rec {
|
||||
hash = "sha256-XZqjAhxgIiATJd3JcW2WWUMC1b6+cfZRhXlIPyMUFH8=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ setuptools ];
|
||||
build-system = [ setuptools ];
|
||||
|
||||
propagatedBuildInputs = [ proton-core ];
|
||||
dependencies = [ proton-core ];
|
||||
|
||||
pythonImportsCheck = [ "proton.vpn.killswitch.interface" ];
|
||||
|
||||
|
||||
@@ -20,9 +20,11 @@ buildPythonPackage rec {
|
||||
hash = "sha256-/LfMjyTs/EusgnKEQugsdJzqDZBvaAhbsTUVLDCRw0I=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ setuptools ];
|
||||
build-system = [
|
||||
setuptools
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [ proton-core ];
|
||||
dependencies = [ proton-core ];
|
||||
|
||||
pythonImportsCheck = [ "proton.vpn.logging" ];
|
||||
|
||||
|
||||
@@ -25,10 +25,13 @@ buildPythonPackage rec {
|
||||
nativeBuildInputs = [
|
||||
# Solves Namespace NM not available
|
||||
gobject-introspection
|
||||
];
|
||||
|
||||
build-system = [
|
||||
setuptools
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
dependencies = [
|
||||
proton-core
|
||||
proton-vpn-network-manager
|
||||
];
|
||||
|
||||
@@ -26,10 +26,13 @@ buildPythonPackage rec {
|
||||
nativeBuildInputs = [
|
||||
# Solves Namespace NM not available
|
||||
gobject-introspection
|
||||
];
|
||||
|
||||
build-system = [
|
||||
setuptools
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
dependencies = [
|
||||
proton-core
|
||||
proton-vpn-killswitch-network-manager-wireguard
|
||||
proton-vpn-network-manager
|
||||
|
||||
@@ -30,10 +30,13 @@ buildPythonPackage rec {
|
||||
nativeBuildInputs = [
|
||||
# Needed to recognize the NM namespace
|
||||
gobject-introspection
|
||||
];
|
||||
|
||||
build-system = [
|
||||
setuptools
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
dependencies = [
|
||||
# Needed here for the NM namespace
|
||||
networkmanager
|
||||
proton-core
|
||||
|
||||
@@ -28,9 +28,11 @@ buildPythonPackage rec {
|
||||
hash = "sha256-/5ju/2bxhqK6JWchkxFe3amBKHtO98GCVQWIrUsn+nQ=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ setuptools ];
|
||||
build-system = [
|
||||
setuptools
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
dependencies = [
|
||||
cryptography
|
||||
distro
|
||||
proton-core
|
||||
|
||||
Reference in New Issue
Block a user