[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#38029] [PATCH 15/80] gnu: Add python-dbusmock.
From: |
Kei Kebreau |
Subject: |
[bug#38029] [PATCH 15/80] gnu: Add python-dbusmock. |
Date: |
Fri, 1 Nov 2019 21:43:44 -0400 |
* 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 <address@hidden>
;;; Copyright © 2017 José Miguel Sánchez García <address@hidden>
;;; Copyright © 2017 Roel Janssen <address@hidden>
-;;; Copyright © 2017, 2018 Kei Kebreau <address@hidden>
+;;; Copyright © 2017, 2018, 2019 Kei Kebreau <address@hidden>
;;; Copyright © 2017 Rutger Helling <address@hidden>
;;; Copyright © 2017 Muriithi Frederick Muriuki <address@hidden>
;;; Copyright © 2017, 2019 Brendan Tildesley <address@hidden>
@@ -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
- [bug#38029] [PATCH 02/80] gnu: baobab: Update to 3.32.0., (continued)
- [bug#38029] [PATCH 02/80] gnu: baobab: Update to 3.32.0., Kei Kebreau, 2019/11/01
- [bug#38029] [PATCH 04/80] gnu: epiphany: Update to 3.32.3., Kei Kebreau, 2019/11/01
- [bug#38029] [PATCH 05/80] gnu: evince: Update to 3.32.0., Kei Kebreau, 2019/11/01
- [bug#38029] [PATCH 06/80] gnu: file-roller: Update to 3.32.1., Kei Kebreau, 2019/11/01
- [bug#38029] [PATCH 08/80] gnu: gnome-backgrounds: Update to 3.32.0., Kei Kebreau, 2019/11/01
- [bug#38029] [PATCH 07/80] gnu: gedit: Update to 3.32.2., Kei Kebreau, 2019/11/01
- [bug#38029] [PATCH 09/80] gnu: gnome-bluetooth: Update to 3.32.1., Kei Kebreau, 2019/11/01
- [bug#38029] [PATCH 10/80] gnu: gsettings-desktop-schemas: Update to 3.32.0., Kei Kebreau, 2019/11/01
- [bug#38029] [PATCH 11/80] gnu: gnome-icon-theme: Update home page., Kei Kebreau, 2019/11/01
- [bug#38029] [PATCH 13/80] gnu: gnome-online-accounts: Update to 3.32.0., Kei Kebreau, 2019/11/01
- [bug#38029] [PATCH 15/80] gnu: Add python-dbusmock.,
Kei Kebreau <=
- [bug#38029] [PATCH 12/80] gnu: gnome-desktop: Update to 3.32.2., Kei Kebreau, 2019/11/01
- [bug#38029] [PATCH 18/80] gnu: tracker: Update to 2.2.2., Kei Kebreau, 2019/11/01
- [bug#38029] [PATCH 14/80] gnu: gnome-settings-daemon: Update to 3.32.1., Kei Kebreau, 2019/11/01
- [bug#38029] [PATCH 16/80] gnu: gnome-control-center: Update to 3.32.2., Kei Kebreau, 2019/11/01
- [bug#38029] [PATCH 17/80] gnu: grilo: Update to 0.3.9., Kei Kebreau, 2019/11/01
- [bug#38029] [PATCH 19/80] gnu: vala: Update to 0.44.6., Kei Kebreau, 2019/11/01
- [bug#38029] GNOME 3.32 patches, Kei Kebreau, 2019/11/01