Unverified Commit c9f71ace authored by Weijia Wang's avatar Weijia Wang Committed by GitHub
Browse files

gp-saml: migrate to by-name (#427492)

parents 3e672c06 8e41855f
Loading
Loading
Loading
Loading
+16 −14
Original line number Diff line number Diff line
@@ -2,16 +2,14 @@
  lib,
  stdenv,
  fetchFromGitHub,
  buildPythonPackage,
  python3Packages,
  webkitgtk_4_1,
  wrapGAppsHook3,
  glib-networking,
  gobject-introspection,
  openconnect,
  pygobject3,
  requests,
}:
buildPythonPackage rec {
python3Packages.buildPythonPackage rec {
  pname = "gp-saml-gui";
  version = "0.1+20240731-${lib.strings.substring 0 7 src.rev}";
  format = "setuptools";
@@ -20,7 +18,7 @@ buildPythonPackage rec {
    owner = "dlenski";
    repo = "gp-saml-gui";
    rev = "c46af04b3a6325b0ecc982840d7cfbd1629b6d43";
    sha256 = "sha256-4MFHad1cuCWawy2hrqdXOgud0pXpYiV9J3Jwqyg4Udk=";
    hash = "sha256-4MFHad1cuCWawy2hrqdXOgud0pXpYiV9J3Jwqyg4Udk=";
  };

  buildInputs = lib.optional stdenv.hostPlatform.isLinux glib-networking;
@@ -31,9 +29,13 @@ buildPythonPackage rec {
    glib-networking
  ];

  propagatedBuildInputs = [
  dependencies =
    with python3Packages;
    [
      requests
      pygobject3
    ]
    ++ [
      openconnect
    ]
    ++ lib.optional stdenv.hostPlatform.isLinux webkitgtk_4_1;
@@ -44,11 +46,11 @@ buildPythonPackage rec {
    )
  '';

  meta = with lib; {
  meta = {
    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 ];
    license = lib.licenses.gpl3Only;
    maintainers = with lib.maintainers; [ pallix ];
  };
}
+0 −2
Original line number Diff line number Diff line
@@ -1085,8 +1085,6 @@ with pkgs;
    }
  );

  gp-saml-gui = python3Packages.callPackage ../tools/networking/gp-saml-gui { };

  inherit (callPackages ../tools/networking/ivpn/default.nix { })
    ivpn
    ivpn-service