From 60b6e08cc04ae8698803f320bd3dbf8f403d9038 Mon Sep 17 00:00:00 2001 From: Brendan Tildesley Date: Wed, 2 Mar 2022 08:29:54 +1100 Subject: [PATCH 24/81] gnu: Add libaccounts-glib. * gnu/packages/glib.scm (libaccounts-glib): New variable. diff --git a/gnu/packages/glib.scm b/gnu/packages/glib.scm index 61040c91e7..30dd3ee72e 100644 --- a/gnu/packages/glib.scm +++ b/gnu/packages/glib.scm @@ -17,6 +17,7 @@ ;;; Copyright © 2020 Jan (janneke) Nieuwenhuizen ;;; Copyright © 2020 Arthur Margerit ;;; Copyright © 2021 Maxime Devos +;;; Copyright © 2022 Petr Hodina ;;; ;;; This file is part of GNU Guix. ;;; @@ -67,6 +68,7 @@ (define-module (gnu packages glib) #:use-module (gnu packages pkg-config) #:use-module (gnu packages python) #:use-module (gnu packages python-xyz) + #:use-module (gnu packages sqlite) #:use-module (gnu packages web) #:use-module (gnu packages xml) #:use-module (gnu packages xorg) @@ -76,6 +78,7 @@ (define-module (gnu packages glib) #:use-module (guix build-system perl) #:use-module (guix build-system python) #:use-module (guix download) + #:use-module (guix git-download) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages) #:use-module (guix utils) @@ -758,6 +761,58 @@ (define dbus-glib by GDBus included in Glib.") (license license:gpl2))) ; or Academic Free License 2.1 +(define-public libaccounts-glib + (package + (name "libaccounts-glib") + (version "1.25") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://gitlab.com/accounts-sso/libaccounts-glib") + (commit (string-append version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "19rhk9f97m736d5ia26vfcbjp5kgi454558yhf9mrwm4iw5d9pk4")))) + (build-system meson-build-system) + (native-inputs (list dbus + `(,glib "bin") + gobject-introspection + gtk-doc + pkg-config + vala)) + (inputs (list check python python-pygobject)) + (propagated-inputs (list glib libxml2 sqlite)) + (arguments + (list #:tests? #f ;one test fails. + #:imported-modules `((guix build python-build-system) + ,@%meson-build-system-modules) + #:modules '(((guix build python-build-system) + #:select (python-version)) + (guix build meson-build-system) + (guix build utils)) + ;; don't try installing to python store path. + #:configure-flags #~(list (string-append "-Dpy-overrides-dir=" + #$output "/lib/python" + (python-version #$(this-package-input + "python")) + "/site-packages/gi/overrides")) + #:phases #~(modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "dbus-run-session" "--" "meson" "test" + "--print-errorlogs"))))))) + (home-page "https://accounts-sso.gitlab.io/") + (synopsis "Accounts SSO (Single Sign-On) management library for GLib +applications") + (description + "Accounts SSO is a framework for application developers who +wish to acquire, use and store web account details and credentials. It +handles the authentication process of an account and securely stores the +credentials and service-specific settings.") + (license license:lgpl2.1+))) + (define libsigc++ (package (name "libsigc++") -- 2.37.2