depot/third_party/nixpkgs/pkgs/tools/networking/gp-saml-gui/default.nix
Default email ae2dc6aea6 Project import generated by Copybara.
GitOrigin-RevId: 4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0
2024-10-11 07:15:48 +02:00

47 lines
1.1 KiB
Nix

{ lib
, stdenv
, fetchFromGitHub
, buildPythonPackage
, webkitgtk_4_0
, wrapGAppsHook3
, glib-networking
, gobject-introspection
, openconnect
, pygobject3
, requests
}:
buildPythonPackage rec {
pname = "gp-saml-gui";
version = "0.1+20240731-${lib.strings.substring 0 7 src.rev}";
src = fetchFromGitHub {
owner = "dlenski";
repo = "gp-saml-gui";
rev = "c46af04b3a6325b0ecc982840d7cfbd1629b6d43";
sha256 = "sha256-4MFHad1cuCWawy2hrqdXOgud0pXpYiV9J3Jwqyg4Udk=";
};
buildInputs = lib.optional stdenv.hostPlatform.isLinux glib-networking;
nativeBuildInputs = [ wrapGAppsHook3 gobject-introspection glib-networking ];
propagatedBuildInputs = [
requests
pygobject3
openconnect
] ++ lib.optional stdenv.hostPlatform.isLinux webkitgtk_4_0;
preFixup = ''
gappsWrapperArgs+=(
--set WEBKIT_DISABLE_COMPOSITING_MODE "1"
)
'';
meta = with lib; {
description = "Interactively authenticate to GlobalProtect VPNs that require SAML";
mainProgram = "gp-saml-gui";
homepage = "https://github.com/dlenski/gp-saml-gui";
license = licenses.gpl3Only;
maintainers = [ maintainers.pallix ];
};
}