From: Arun Isaac <arunisaac@systemreboot.net>
To: 28282@debbugs.gnu.org
Subject: [bug#28282] [PATCH 1/3] gnu: python2-cliapp: Enable tests.
Date: Wed, 30 Aug 2017 01:39:03 +0530 [thread overview]
Message-ID: <4ac33903.AEMAPNFWBQYAAAAAAAAAAAPmN94AAAACwQwAAAAAAAW9WABZpcn5@mailjet.com> (raw)
In-Reply-To: <7d3aff27.ADkAAC1TqkgAAAAAAAAAAAOtUOAAAAACwQwAAAAAAAW9WABZpcdW@mailjet.com>
* gnu/packages/python.scm (python2-cliapp)[arguments]: Replace 'check' phase
with custom function.
---
gnu/packages/python.scm | 17 ++++++++++++++++-
1 file changed, 16 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 3609ff055..b81e6e47c 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -13991,7 +13991,22 @@ parse many formal languages.")
"1i9gik0xrj6jmi95s5w988jl1y265baz5xm5pbqdyvsh8h9ln6yq"))))
(build-system python-build-system)
(arguments
- `(#:python ,python-2))
+ `(#:python ,python-2
+ #:phases
+ (modify-phases %standard-phases
+ ;; check phase needs to be run before the build phase. If not,
+ ;; coverage-test-runner looks for tests for the built source files,
+ ;; and fails.
+ (delete 'check)
+ (add-before 'build 'check
+ (lambda _
+ ;; Disable python3 tests
+ (substitute* "check"
+ (("python3") "# python3"))
+ (zero? (system* "./check")))))))
+ (native-inputs
+ `(("python2-coverage-test-runner" ,python2-coverage-test-runner)
+ ("python2-pep8" ,python2-pep8)))
(propagated-inputs
`(("python2-pyaml" ,python2-pyaml)))
(home-page "https://liw.fi/cliapp/")
--
2.13.4
prev parent reply other threads:[~2017-08-29 20:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-29 19:57 [bug#28282] Add tests for a python2-cliapp, python2-ttystatus and python2-larch Arun Isaac
2017-08-29 20:09 ` Arun Isaac [this message]
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=4ac33903.AEMAPNFWBQYAAAAAAAAAAAPmN94AAAACwQwAAAAAAAW9WABZpcn5@mailjet.com \
--to=arunisaac@systemreboot.net \
--cc=28282@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).