From: "Tomáš Čech" <sleep_walker@gnu.org>
To: Christopher Baines <mail@cbaines.net>
Cc: 28693@debbugs.gnu.org
Subject: [bug#28693] [PATCH] gnu: Add missing input to python-py3status and fix call path.
Date: Thu, 5 Oct 2017 23:24:39 +0200 [thread overview]
Message-ID: <20171005212439.26407-1-sleep_walker@gnu.org> (raw)
In-Reply-To: <20171004075944.1e5a7cbf@cbaines.net>
* gnu/packages/python.scm (python-py3status)[inputs, arguments]: Add missing
file utility as input, adjust path used to call it.
file is used to determine configuration file encoding and py3status fails to
start when this tool is missing.
---
gnu/packages/python.scm | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 6ffd468b3..426ff12eb 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -11468,8 +11468,21 @@ to occurrences in strings and comments.")
(base32
"0i283z1pivmir61z8kbiycigc94l61v33ygzkhczf1ifq7cppyds"))))
(build-system python-build-system)
+ (inputs
+ `(("file" ,file)))
(arguments
- '(#:tests? #f)) ; TODO: Requires many libraries not in Guix.
+ '(#:phases
+ (modify-phases %standard-phases
+ ;; 'file' is used for detection of configuration file encoding
+ ;; let's make link the dependency to particular input
+ (add-before 'build 'patch-file-path
+ (lambda* (#:key inputs #:allow-other-keys)
+ (let ((file-path (assoc-ref inputs "file")))
+ (substitute* "py3status/parse_config.py"
+ (("check_output\\(\\['file'")
+ (string-append "check_output(['" file-path "/bin/file'")))
+ #t))))
+ #:tests? #f)) ; TODO: Requires many libraries not in Guix.
(home-page "https://github.com/ultrabug/py3status")
(synopsis "Extensible i3status wrapper written in Python")
(description "py3status is an i3status wrapper which extends i3status
--
2.14.2
next prev parent reply other threads:[~2017-10-05 21:25 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-03 22:57 [bug#28693] [PATCH] gnu: Add missing input to python-py3status Tomáš Čech
2017-10-04 6:59 ` Christopher Baines
2017-10-05 21:08 ` Tomáš Čech
2017-10-06 6:29 ` Christopher Baines
2017-10-05 21:24 ` Tomáš Čech [this message]
2017-10-05 22:22 ` [bug#28693] [PATCH] gnu: Add missing input to python-py3status and fix call path Marius Bakke
2017-10-06 6:32 ` Christopher Baines
2017-10-08 11:05 ` bug#28693: " Tomáš Čech
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20171005212439.26407-1-sleep_walker@gnu.org \
--to=sleep_walker@gnu.org \
--cc=28693@debbugs.gnu.org \
--cc=mail@cbaines.net \
/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 external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.