2023-04-29 16:46:19 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, buildPythonPackage
|
2024-10-11 05:15:48 +00:00
|
|
|
, webkitgtk_4_0
|
2024-05-15 15:35:15 +00:00
|
|
|
, wrapGAppsHook3
|
2023-04-29 16:46:19 +00:00
|
|
|
, glib-networking
|
|
|
|
, gobject-introspection
|
|
|
|
, openconnect
|
|
|
|
, pygobject3
|
|
|
|
, requests
|
|
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "gp-saml-gui";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "0.1+20240731-${lib.strings.substring 0 7 src.rev}";
|
2023-04-29 16:46:19 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dlenski";
|
|
|
|
repo = "gp-saml-gui";
|
2024-09-19 14:19:46 +00:00
|
|
|
rev = "c46af04b3a6325b0ecc982840d7cfbd1629b6d43";
|
|
|
|
sha256 = "sha256-4MFHad1cuCWawy2hrqdXOgud0pXpYiV9J3Jwqyg4Udk=";
|
2023-04-29 16:46:19 +00:00
|
|
|
};
|
|
|
|
|
2024-09-26 11:04:55 +00:00
|
|
|
buildInputs = lib.optional stdenv.hostPlatform.isLinux glib-networking;
|
2023-04-29 16:46:19 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
nativeBuildInputs = [ wrapGAppsHook3 gobject-introspection glib-networking ];
|
2023-04-29 16:46:19 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
requests
|
|
|
|
pygobject3
|
|
|
|
openconnect
|
2024-10-11 05:15:48 +00:00
|
|
|
] ++ lib.optional stdenv.hostPlatform.isLinux webkitgtk_4_0;
|
2023-04-29 16:46:19 +00:00
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
gappsWrapperArgs+=(
|
|
|
|
--set WEBKIT_DISABLE_COMPOSITING_MODE "1"
|
|
|
|
)
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Interactively authenticate to GlobalProtect VPNs that require SAML";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "gp-saml-gui";
|
2023-04-29 16:46:19 +00:00
|
|
|
homepage = "https://github.com/dlenski/gp-saml-gui";
|
|
|
|
license = licenses.gpl3Only;
|
|
|
|
maintainers = [ maintainers.pallix ];
|
|
|
|
};
|
|
|
|
}
|