gnu: python-dbusmock: Patch reference to dbus-daemon.

* gnu/packages/python-xyz.scm (python-dbusmock)
[phases]{patch-shell-path}: Rename to...
{patch-paths}: ... this, and also patch the dbus-daemon reference.
This commit is contained in:
Maxim Cournoyer 2021-11-18 08:30:35 -05:00
parent 416c706729
commit 61576d5927
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -23620,15 +23620,21 @@ (define-public python-dbusmock
(arguments
'(#:phases
(modify-phases %standard-phases
(add-after 'unpack 'patch-shell-path
(lambda _
(add-after 'unpack 'patch-paths
(lambda* (#:key inputs #:allow-other-keys)
(substitute* "tests/test_code.py"
(("/bin/bash") (which "bash"))))))))
(("/bin/bash") (which "bash")))
(substitute* "dbusmock/testcase.py"
(("'dbus-daemon'")
(string-append "'" (assoc-ref inputs "dbus")
"/bin/dbus-daemon'"))))))))
(native-inputs
`(;; For tests.
("dbus" ,dbus) ; for dbus-daemon
("python-nose" ,python-nose)
("which" ,which)))
(inputs
`(("dbus" ,dbus)))
(propagated-inputs
`(("python-dbus" ,python-dbus)
("python-pygobject" ,python-pygobject)))