unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Kei Kebreau <kkebreau@posteo.net>
To: 38029@debbugs.gnu.org
Cc: Kei Kebreau <kkebreau@posteo.net>
Subject: [bug#38029] [PATCH 15/80] gnu: Add python-dbusmock.
Date: Fri,  1 Nov 2019 21:43:44 -0400	[thread overview]
Message-ID: <20191102014348.3191-6-kkebreau@posteo.net> (raw)
In-Reply-To: <20191102014348.3191-1-kkebreau@posteo.net>

* gnu/packages/python-xyz.scm (python-dbusmock): New variable.
---
 gnu/packages/python-xyz.scm | 40 ++++++++++++++++++++++++++++++++++++-
 1 file changed, 39 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 10fe5ee553..56b43c73cd 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -41,7 +41,7 @@
 ;;; Copyright © 2017, 2018 Mathieu Othacehe <m.othacehe@gmail.com>
 ;;; Copyright © 2017 José Miguel Sánchez García <jmi2k@openmailbox.org>
 ;;; Copyright © 2017 Roel Janssen <roel@gnu.org>
-;;; Copyright © 2017, 2018 Kei Kebreau <kkebreau@posteo.net>
+;;; Copyright © 2017, 2018, 2019 Kei Kebreau <kkebreau@posteo.net>
 ;;; Copyright © 2017 Rutger Helling <rhelling@mykolab.com>
 ;;; Copyright © 2017 Muriithi Frederick Muriuki <fredmanglis@gmail.com>
 ;;; Copyright © 2017, 2019 Brendan Tildesley <mail@brendan.scot>
@@ -102,6 +102,7 @@
   #:use-module (gnu packages ghostscript)
   #:use-module (gnu packages gl)
   #:use-module (gnu packages glib)
+  #:use-module (gnu packages gnome)
   #:use-module (gnu packages graphviz)
   #:use-module (gnu packages graphics)
   #:use-module (gnu packages gstreamer)
@@ -16487,3 +16488,40 @@ It is the recommended replacement for Python's original
 @code{distro} also provides a command-line interface to output the platform
 information in various formats.")
     (license license:asl2.0)))
+
+(define-public python-dbusmock
+  (package
+  (name "python-dbusmock")
+  (version "0.18.1")
+  (source
+    (origin
+      (method url-fetch)
+      (uri (pypi-uri "python-dbusmock" version))
+      (sha256
+        (base32
+          "1hj02p65cic4jdc6a5xf1hx8j5icwy7dcrm5kg91lkjks4gwpg5h"))))
+  (build-system python-build-system)
+  (arguments
+   '(#:phases
+     (modify-phases %standard-phases
+       (add-after 'unpack 'patch-/bin/sh
+         (lambda _
+           (substitute* "tests/test_code.py"
+             (("/bin/sh") (which "sh")))
+           #t)))))
+  (native-inputs
+   `(;; For tests.
+     ("dbus" ,dbus) ; for dbus-daemon
+     ("python-nose" ,python-nose)
+     ("which" ,which)))
+  (propagated-inputs
+   `(("python-dbus" ,python-dbus)
+     ("python-pygobject" ,python-pygobject)))
+  (home-page "https://github.com/martinpitt/python-dbusmock")
+  (synopsis "Python library for mock D-Bus objects")
+  (description "python-dbusmock allows for the easy creation of mock objects on
+D-Bus.  This is useful for writing tests for software which talks to D-Bus
+services such as upower, systemd, logind, gnome-session or others, and it is
+hard (or impossible without root privileges) to set the state of the real
+services to what you expect in your tests.")
+  (license license:lgpl3+)))
-- 
2.23.0

  parent reply	other threads:[~2019-11-02  1:45 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-02  1:39 [bug#38029] GNOME 3.32 patches Kei Kebreau
2019-11-02  1:40 ` [bug#38029] [PATCH 01/80] gnu: adwaita-icon-theme: Update to 3.32.0 Kei Kebreau
2019-11-02  1:40   ` [bug#38029] [PATCH 02/80] gnu: baobab: " Kei Kebreau
2019-11-02  1:40   ` [bug#38029] [PATCH 03/80] gnu: eog: Update to 3.32.2 Kei Kebreau
2019-11-02  1:40   ` [bug#38029] [PATCH 04/80] gnu: epiphany: Update to 3.32.3 Kei Kebreau
2019-11-02  1:40   ` [bug#38029] [PATCH 05/80] gnu: evince: Update to 3.32.0 Kei Kebreau
2019-11-02  1:40   ` [bug#38029] [PATCH 06/80] gnu: file-roller: Update to 3.32.1 Kei Kebreau
2019-11-02  1:40   ` [bug#38029] [PATCH 07/80] gnu: gedit: Update to 3.32.2 Kei Kebreau
2019-11-02  1:40   ` [bug#38029] [PATCH 08/80] gnu: gnome-backgrounds: Update to 3.32.0 Kei Kebreau
2019-11-02  1:40   ` [bug#38029] [PATCH 09/80] gnu: gnome-bluetooth: Update to 3.32.1 Kei Kebreau
2019-11-02  1:43 ` [bug#38029] [PATCH 10/80] gnu: gsettings-desktop-schemas: Update to 3.32.0 Kei Kebreau
2019-11-02  1:43   ` [bug#38029] [PATCH 11/80] gnu: gnome-icon-theme: Update home page Kei Kebreau
2019-11-02  1:43   ` [bug#38029] [PATCH 12/80] gnu: gnome-desktop: Update to 3.32.2 Kei Kebreau
2019-11-02  1:43   ` [bug#38029] [PATCH 13/80] gnu: gnome-online-accounts: Update to 3.32.0 Kei Kebreau
2019-11-02  1:43   ` [bug#38029] [PATCH 14/80] gnu: gnome-settings-daemon: Update to 3.32.1 Kei Kebreau
2019-11-02  1:43   ` Kei Kebreau [this message]
2019-11-02  1:43   ` [bug#38029] [PATCH 16/80] gnu: gnome-control-center: Update to 3.32.2 Kei Kebreau
2019-11-02  1:43   ` [bug#38029] [PATCH 17/80] gnu: grilo: Update to 0.3.9 Kei Kebreau
2019-11-02  1:43   ` [bug#38029] [PATCH 18/80] gnu: tracker: Update to 2.2.2 Kei Kebreau
2019-11-02  1:43   ` [bug#38029] [PATCH 19/80] gnu: vala: Update to 0.44.6 Kei Kebreau
2019-11-02  1:56 ` [bug#38029] GNOME 3.32 patches Kei Kebreau
2019-11-02  2:06   ` Leo Famulari
2019-11-02  2:21     ` Kei Kebreau
2019-12-08 18:19 ` bug#38029: " Kei Kebreau

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20191102014348.3191-6-kkebreau@posteo.net \
    --to=kkebreau@posteo.net \
    --cc=38029@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).