From patchwork Tue Jan 29 11:42:38 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christopher Baines X-Patchwork-Id: 909 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 2F81916AF3; Tue, 29 Jan 2019 11:43:08 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,UNPARSEABLE_RELAY, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id B2FC516AED for ; Tue, 29 Jan 2019 11:43:07 +0000 (GMT) Received: from localhost ([127.0.0.1]:47815 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1goRnH-0004Ym-3j for patchwork@mira.cbaines.net; Tue, 29 Jan 2019 06:43:07 -0500 Received: from eggs.gnu.org ([209.51.188.92]:40271) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1goRnD-0004WG-1n for guix-patches@gnu.org; Tue, 29 Jan 2019 06:43:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1goRnC-0003K7-3z for guix-patches@gnu.org; Tue, 29 Jan 2019 06:43:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:50486) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1goRnC-0003K3-0o for guix-patches@gnu.org; Tue, 29 Jan 2019 06:43:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1goRnB-000283-S9 for guix-patches@gnu.org; Tue, 29 Jan 2019 06:43:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#34240] [PATCH 1/5] gnu: Add cups-pk-helper. Resent-From: Christopher Baines Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 29 Jan 2019 11:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34240 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 34240@debbugs.gnu.org Received: via spool by 34240-submit@debbugs.gnu.org id=B34240.15487621658135 (code B ref 34240); Tue, 29 Jan 2019 11:43:01 +0000 Received: (at 34240) by debbugs.gnu.org; 29 Jan 2019 11:42:45 +0000 Received: from localhost ([127.0.0.1]:49759 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1goRmv-000278-C0 for submit@debbugs.gnu.org; Tue, 29 Jan 2019 06:42:45 -0500 Received: from li622-129.members.linode.com ([212.71.249.129]:59954 helo=mira.cbaines.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1goRmt-00026Z-GH for 34240@debbugs.gnu.org; Tue, 29 Jan 2019 06:42:44 -0500 Received: from localhost (cpc102582-walt20-2-0-cust14.13-2.cable.virginm.net [86.27.34.15]) by mira.cbaines.net (Postfix) with ESMTPSA id AA24316AED for <34240@debbugs.gnu.org>; Tue, 29 Jan 2019 11:42:42 +0000 (GMT) Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id 1b7cd971 for <34240@debbugs.gnu.org>; Tue, 29 Jan 2019 11:42:42 +0000 (UTC) From: Christopher Baines Date: Tue, 29 Jan 2019 11:42:38 +0000 Message-Id: <20190129114242.32481-1-mail@cbaines.net> X-Mailer: git-send-email 2.20.1 In-Reply-To: <87a7jjr8y3.fsf@cbaines.net> References: <87a7jjr8y3.fsf@cbaines.net> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/cups.scm (cups-pk-helper): New variable. --- gnu/packages/cups.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/gnu/packages/cups.scm b/gnu/packages/cups.scm index 40ffc0df80..138a1fc3ed 100644 --- a/gnu/packages/cups.scm +++ b/gnu/packages/cups.scm @@ -38,6 +38,7 @@ #:use-module (gnu packages pdf) #:use-module (gnu packages perl) #:use-module (gnu packages pkg-config) + #:use-module (gnu packages polkit) #:use-module (gnu packages pretty-print) #:use-module (gnu packages python) #:use-module (gnu packages python-xyz) @@ -380,6 +381,32 @@ device-specific programs to convert and print many types of files.") ("cups-filters" ,cups-filters) ("zlib" ,zlib))))) +(define-public cups-pk-helper + (package + (name "cups-pk-helper") + (version "0.2.6") + (source (origin + (method url-fetch) + (uri (string-append "https://freedesktop.org/software/" + name "/releases/" name "-" version ".tar.xz")) + (sha256 + (base32 + "0a52jw6rm7lr5nbyksiia0rn7sasyb5cjqcb95z1wxm2yprgi6lm")))) + (build-system gnu-build-system) + (native-inputs + `(("intltool" ,intltool) + ("pkg-config" ,pkg-config) + ("glib" ,glib) + ("polkit" ,polkit) + ("cups" ,cups))) + (home-page "https://www.freedesktop.org/wiki/Software/cups-pk-helper/") + (synopsis "PolicyKit helper to configure cups with fine-grained privileges") + (description + "This package provides the org.opensuse.CupsPkHelper.Mechanism DBus +system service which uses @file{cups-pk-helper-mechanism}. This package +should only be used as part of the Guix cups-pk-helper service.") + (license license:gpl2+))) + (define-public hplip (package (name "hplip") From patchwork Tue Jan 29 11:42:39 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christopher Baines X-Patchwork-Id: 912 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 2C14116AF3; Tue, 29 Jan 2019 11:45:04 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,UNPARSEABLE_RELAY autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id D15D616AEE for ; Tue, 29 Jan 2019 11:45:03 +0000 (GMT) Received: from localhost ([127.0.0.1]:47841 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1goRp9-00062Y-Ax for patchwork@mira.cbaines.net; Tue, 29 Jan 2019 06:45:03 -0500 Received: from eggs.gnu.org ([209.51.188.92]:40307) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1goRnE-0004Xe-J0 for guix-patches@gnu.org; Tue, 29 Jan 2019 06:43:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1goRnD-0003Kw-N1 for guix-patches@gnu.org; Tue, 29 Jan 2019 06:43:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:50489) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1goRnD-0003Ko-JE for guix-patches@gnu.org; Tue, 29 Jan 2019 06:43:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1goRnD-00028P-Ej for guix-patches@gnu.org; Tue, 29 Jan 2019 06:43:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#34240] [PATCH 2/5] services: Add cups-pk-helper. Resent-From: Christopher Baines Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 29 Jan 2019 11:43:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34240 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 34240@debbugs.gnu.org Received: via spool by 34240-submit@debbugs.gnu.org id=B34240.15487621668157 (code B ref 34240); Tue, 29 Jan 2019 11:43:03 +0000 Received: (at 34240) by debbugs.gnu.org; 29 Jan 2019 11:42:46 +0000 Received: from localhost ([127.0.0.1]:49765 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1goRmw-00027P-BM for submit@debbugs.gnu.org; Tue, 29 Jan 2019 06:42:46 -0500 Received: from li622-129.members.linode.com ([212.71.249.129]:59956 helo=mira.cbaines.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1goRmt-00026a-If for 34240@debbugs.gnu.org; Tue, 29 Jan 2019 06:42:44 -0500 Received: from localhost (cpc102582-walt20-2-0-cust14.13-2.cable.virginm.net [86.27.34.15]) by mira.cbaines.net (Postfix) with ESMTPSA id C133E16AEE for <34240@debbugs.gnu.org>; Tue, 29 Jan 2019 11:42:42 +0000 (GMT) Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id ad1cb992 for <34240@debbugs.gnu.org>; Tue, 29 Jan 2019 11:42:42 +0000 (UTC) From: Christopher Baines Date: Tue, 29 Jan 2019 11:42:39 +0000 Message-Id: <20190129114242.32481-2-mail@cbaines.net> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190129114242.32481-1-mail@cbaines.net> References: <87a7jjr8y3.fsf@cbaines.net> <20190129114242.32481-1-mail@cbaines.net> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches This service integrates cups and PolicyKit. The gnome-control-center printing section uses this functionality. * gnu/sevices/desktop.scm (cups-pk-helper-service-type): New variable. (%desktop-services): Add the cups-pk-helper service. --- gnu/services/desktop.scm | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/gnu/services/desktop.scm b/gnu/services/desktop.scm index fbeabf1162..a93fa3c356 100644 --- a/gnu/services/desktop.scm +++ b/gnu/services/desktop.scm @@ -39,6 +39,7 @@ #:use-module (gnu system pam) #:use-module (gnu packages glib) #:use-module (gnu packages admin) + #:use-module (gnu packages cups) #:use-module (gnu packages freedesktop) #:use-module (gnu packages gnome) #:use-module (gnu packages xfce) @@ -801,6 +802,21 @@ accountsservice web site} for more information." (service accountsservice-service-type accountsservice)) +;;; +;;; cups-pk-helper service. +;;; + +(define cups-pk-helper-service-type + (service-type + (name 'cups-pk-helper) + (description + "PolicyKit helper to configure CUPS with fine-grained privileges.") + (extensions + (list (service-extension dbus-root-service-type list) + (service-extension polkit-service-type list))) + (default-value cups-pk-helper))) + + ;;; ;;; GNOME desktop service. ;;; @@ -990,6 +1006,7 @@ as expected."))) (udisks-service) (upower-service) (accountsservice-service) + (service cups-pk-helper-service-type) (colord-service) (geoclue-service) (service polkit-service-type) From patchwork Tue Jan 29 11:42:40 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christopher Baines X-Patchwork-Id: 911 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 5D5FF16AF3; Tue, 29 Jan 2019 11:44:59 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,UNPARSEABLE_RELAY, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id D5F4516AED for ; Tue, 29 Jan 2019 11:44:58 +0000 (GMT) Received: from localhost ([127.0.0.1]:47843 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1goRp4-00062z-C3 for patchwork@mira.cbaines.net; Tue, 29 Jan 2019 06:44:58 -0500 Received: from eggs.gnu.org ([209.51.188.92]:40284) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1goRnD-0004Wl-Ht for guix-patches@gnu.org; Tue, 29 Jan 2019 06:43:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1goRnC-0003KG-Iw for guix-patches@gnu.org; Tue, 29 Jan 2019 06:43:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:50487) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1goRnC-0003KC-Fv for guix-patches@gnu.org; Tue, 29 Jan 2019 06:43:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1goRnC-00028A-Cp for guix-patches@gnu.org; Tue, 29 Jan 2019 06:43:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#34240] [PATCH 3/5] gnu: Add python-pycups. Resent-From: Christopher Baines Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 29 Jan 2019 11:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34240 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 34240@debbugs.gnu.org Received: via spool by 34240-submit@debbugs.gnu.org id=B34240.15487621668143 (code B ref 34240); Tue, 29 Jan 2019 11:43:02 +0000 Received: (at 34240) by debbugs.gnu.org; 29 Jan 2019 11:42:46 +0000 Received: from localhost ([127.0.0.1]:49761 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1goRmv-00027A-Ml for submit@debbugs.gnu.org; Tue, 29 Jan 2019 06:42:45 -0500 Received: from li622-129.members.linode.com ([212.71.249.129]:59958 helo=mira.cbaines.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1goRmt-00026b-FL for 34240@debbugs.gnu.org; Tue, 29 Jan 2019 06:42:44 -0500 Received: from localhost (cpc102582-walt20-2-0-cust14.13-2.cable.virginm.net [86.27.34.15]) by mira.cbaines.net (Postfix) with ESMTPSA id D74AF16AF3 for <34240@debbugs.gnu.org>; Tue, 29 Jan 2019 11:42:42 +0000 (GMT) Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id e3f18b23 for <34240@debbugs.gnu.org>; Tue, 29 Jan 2019 11:42:42 +0000 (UTC) From: Christopher Baines Date: Tue, 29 Jan 2019 11:42:40 +0000 Message-Id: <20190129114242.32481-3-mail@cbaines.net> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190129114242.32481-1-mail@cbaines.net> References: <87a7jjr8y3.fsf@cbaines.net> <20190129114242.32481-1-mail@cbaines.net> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/cups.scm (python-pycups): New variable. --- gnu/packages/cups.scm | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/gnu/packages/cups.scm b/gnu/packages/cups.scm index 138a1fc3ed..3b42f9e27e 100644 --- a/gnu/packages/cups.scm +++ b/gnu/packages/cups.scm @@ -46,6 +46,7 @@ #:use-module (gnu packages scanner) #:use-module (gnu packages tls) #:use-module (guix build-system gnu) + #:use-module (guix build-system python) #:use-module (guix download) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages) @@ -708,3 +709,27 @@ printers. It can only be used with printers that support the Epson ESC/P-R language.") (home-page "http://download.ebz.epson.net/dsc/search/01/search") (license license:gpl2+))) + +(define-public python-pycups + (package + (name "python-pycups") + (version "1.9.74") + (source + (origin + (method url-fetch) + (uri (pypi-uri "pycups" version ".tar.bz2")) + (sha256 + (base32 + "1ffp7sswhdsfpy88zg0cc8kl04wygkjs01rlm9f0spbwk8jhy2c6")))) + (build-system python-build-system) + (arguments + '(;; Tests require CUPS to be running + #:tests? #f)) + (inputs + `(("cups" ,cups))) + (home-page "https://github.com/zdohnal/pycups") + (synopsis "Python bindings for libcups") + (description + "This package provides Python bindings for libcups, wrapping the CUPS +API.") + (license license:gpl2+))) From patchwork Tue Jan 29 11:42:41 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christopher Baines X-Patchwork-Id: 913 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id BE6B516AF3; Tue, 29 Jan 2019 11:45:14 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,UNPARSEABLE_RELAY, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 4999316AED for ; Tue, 29 Jan 2019 11:45:14 +0000 (GMT) Received: from localhost ([127.0.0.1]:47866 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1goRpJ-0006Db-Sw for patchwork@mira.cbaines.net; Tue, 29 Jan 2019 06:45:13 -0500 Received: from eggs.gnu.org ([209.51.188.92]:40315) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1goRnF-0004Y5-0u for guix-patches@gnu.org; Tue, 29 Jan 2019 06:43:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1goRnE-0003L8-4m for guix-patches@gnu.org; Tue, 29 Jan 2019 06:43:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:50490) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1goRnE-0003L4-0c for guix-patches@gnu.org; Tue, 29 Jan 2019 06:43:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1goRnD-00028X-U7 for guix-patches@gnu.org; Tue, 29 Jan 2019 06:43:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#34240] [PATCH 4/5] gnu: Add system-config-printer. Resent-From: Christopher Baines Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 29 Jan 2019 11:43:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34240 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 34240@debbugs.gnu.org Received: via spool by 34240-submit@debbugs.gnu.org id=B34240.15487621678165 (code B ref 34240); Tue, 29 Jan 2019 11:43:03 +0000 Received: (at 34240) by debbugs.gnu.org; 29 Jan 2019 11:42:47 +0000 Received: from localhost ([127.0.0.1]:49767 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1goRmw-00027W-Lj for submit@debbugs.gnu.org; Tue, 29 Jan 2019 06:42:47 -0500 Received: from li622-129.members.linode.com ([212.71.249.129]:59960 helo=mira.cbaines.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1goRmt-00026c-H8 for 34240@debbugs.gnu.org; Tue, 29 Jan 2019 06:42:45 -0500 Received: from localhost (cpc102582-walt20-2-0-cust14.13-2.cable.virginm.net [86.27.34.15]) by mira.cbaines.net (Postfix) with ESMTPSA id EDFAE16AF5 for <34240@debbugs.gnu.org>; Tue, 29 Jan 2019 11:42:42 +0000 (GMT) Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id bdb9dfdf for <34240@debbugs.gnu.org>; Tue, 29 Jan 2019 11:42:42 +0000 (UTC) From: Christopher Baines Date: Tue, 29 Jan 2019 11:42:41 +0000 Message-Id: <20190129114242.32481-4-mail@cbaines.net> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190129114242.32481-1-mail@cbaines.net> References: <87a7jjr8y3.fsf@cbaines.net> <20190129114242.32481-1-mail@cbaines.net> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/gnome.scm (system-config-printer): New variable. --- gnu/packages/gnome.scm | 87 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 87 insertions(+) diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm index bf9109f680..0982409eeb 100644 --- a/gnu/packages/gnome.scm +++ b/gnu/packages/gnome.scm @@ -978,6 +978,93 @@ for translations, though this is only a dependency for the maintainers. This database is translated at Transifex.") (license license:gpl2+))) +(define-public system-config-printer + (package + (name "system-config-printer") + (version "1.5.11") + (source (origin + (method url-fetch) + (uri (string-append + "https://github.com/zdohnal/system-config-printer/releases/" + "download/" version + "/system-config-printer-" version ".tar.xz")) + (sha256 + (base32 + "1lq0q51bhanirpjjvvh4xiafi8hgpk8r32h0dj6dn3f32z8pib9q")))) + (build-system glib-or-gtk-build-system) + (arguments + `(#:imported-modules ((guix build python-build-system) + ,@%glib-or-gtk-build-system-modules) + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'patch-Makefile.am + (lambda _ + ;; The Makefile generates some scripts, so set a valid shebang + (substitute* "Makefile.am" + (("/bin/bash") (which "bash"))) + #t)) + (add-after 'unpack 'patch-docbook-xml + (lambda* (#:key inputs #:allow-other-keys) + ;; Modify the man XML otherwise xmlto tries to access the network + (substitute* "man/system-config-printer.xml" + (("http://www.oasis-open.org/docbook/xml/4.1.2/") + (string-append (assoc-ref inputs "docbook-xml") + "/xml/dtd/docbook/"))) + #t)) + (add-before 'configure 'bootstrap + (lambda _ + ;; Run ./bootstrap as otherwise the build fails with + ;; automake-1.15: command not found + (invoke "./bootstrap") + #t)) + (add-after 'install 'wrap-for-python + (@@ (guix build python-build-system) wrap)) + (add-after 'install 'wrap + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out")) + (gi-typelib-path (getenv "GI_TYPELIB_PATH"))) + (for-each + (lambda (program) + (wrap-program program + `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path)))) + (map (lambda (name) + (string-append out "/bin/" name)) + '("system-config-printer" + "system-config-printer-applet" + "install-printerdriver" + "scp-dbus-service")))) + #t))))) + (inputs + `(("gsettings-desktop-schemas" ,gsettings-desktop-schemas) + ("gobject-introspection" ,gobject-introspection) + ("python" ,python) + ("cups" ,cups) + ("python-dbus" ,python-dbus) + ("python-pygobject" ,python-pygobject) + ("python-pycups" ,python-pycups) + ("python-requests" ,python-requests) + ("python-pycairo" ,python-pycairo) + ("libnotify" ,libnotify) + ("packagekit" ,packagekit))) + (native-inputs + `(("pkg-config" ,pkg-config) + ("desktop-file-utils" ,desktop-file-utils) + ("glib" ,glib) + ("autoconf" ,autoconf) + ("automake" ,automake) + ("intltool" ,intltool) + ("xmlto" ,xmlto) + ("docbook-xml" ,docbook-xml-4.1.2) + ("docbook-xsl" ,docbook-xsl) + ("libxml2" ,libxml2))) + (home-page "https://github.com/zdohnal/system-config-printer") + (synopsis "CUPS administration tool") + (description + "system-config-printer is a CUPS administration tool. It's written in +Python using GTK+, and uses the @acronym{IPP, Internet Printing Protocol} when +configuring CUPS.") + (license license:gpl2+))) + (define-public hicolor-icon-theme (package (name "hicolor-icon-theme") From patchwork Tue Jan 29 11:42:42 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christopher Baines X-Patchwork-Id: 910 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 8803E16AF3; Tue, 29 Jan 2019 11:44:53 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,UNPARSEABLE_RELAY autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 54BFC16AED for ; Tue, 29 Jan 2019 11:44:53 +0000 (GMT) Received: from localhost ([127.0.0.1]:47839 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1goRoy-0005u5-RA for patchwork@mira.cbaines.net; Tue, 29 Jan 2019 06:44:52 -0500 Received: from eggs.gnu.org ([209.51.188.92]:40288) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1goRnD-0004Wt-NJ for guix-patches@gnu.org; Tue, 29 Jan 2019 06:43:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1goRnD-0003KY-3F for guix-patches@gnu.org; Tue, 29 Jan 2019 06:43:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:50488) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1goRnC-0003KO-VW for guix-patches@gnu.org; Tue, 29 Jan 2019 06:43:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1goRnC-00028I-S9 for guix-patches@gnu.org; Tue, 29 Jan 2019 06:43:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#34240] [PATCH 5/5] gnu: gnome: Include system-config-printer. Resent-From: Christopher Baines Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 29 Jan 2019 11:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34240 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 34240@debbugs.gnu.org Received: via spool by 34240-submit@debbugs.gnu.org id=B34240.15487621668150 (code B ref 34240); Tue, 29 Jan 2019 11:43:02 +0000 Received: (at 34240) by debbugs.gnu.org; 29 Jan 2019 11:42:46 +0000 Received: from localhost ([127.0.0.1]:49763 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1goRmw-00027I-0h for submit@debbugs.gnu.org; Tue, 29 Jan 2019 06:42:46 -0500 Received: from li622-129.members.linode.com ([212.71.249.129]:59962 helo=mira.cbaines.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1goRmt-00026d-HN for 34240@debbugs.gnu.org; Tue, 29 Jan 2019 06:42:44 -0500 Received: from localhost (cpc102582-walt20-2-0-cust14.13-2.cable.virginm.net [86.27.34.15]) by mira.cbaines.net (Postfix) with ESMTPSA id 110A916AF6 for <34240@debbugs.gnu.org>; Tue, 29 Jan 2019 11:42:43 +0000 (GMT) Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id 9176b677 for <34240@debbugs.gnu.org>; Tue, 29 Jan 2019 11:42:42 +0000 (UTC) From: Christopher Baines Date: Tue, 29 Jan 2019 11:42:42 +0000 Message-Id: <20190129114242.32481-5-mail@cbaines.net> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190129114242.32481-1-mail@cbaines.net> References: <87a7jjr8y3.fsf@cbaines.net> <20190129114242.32481-1-mail@cbaines.net> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches This package enables some functionality for printers within the gnome-control-center as well as providing a standalone configuration tool. At the moment, due to the lack of PackageKit support within Guix, the gnome-control-center can't help users through the process of installing this, so make it a default package. * gnu/packages/gnome.scm (gnome)[propagated-inputs]: Add system-config-printer. --- gnu/packages/gnome.scm | 1 + 1 file changed, 1 insertion(+) diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm index 0982409eeb..3a3e98a8fe 100644 --- a/gnu/packages/gnome.scm +++ b/gnu/packages/gnome.scm @@ -6155,6 +6155,7 @@ associations for GNOME.") ("pinentry-gnome3" ,pinentry-gnome3) ("pulseaudio" ,pulseaudio) ("shared-mime-info" ,shared-mime-info) + ("system-config-printer" ,system-config-printer) ("totem" ,totem) ("xdg-user-dirs" ,xdg-user-dirs) ("yelp" ,yelp)