aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/web.scm
diff options
context:
space:
mode:
authorDanny Milosavljevic <dannym@scratchpost.org>2017-07-15 12:48:24 +0200
committerDanny Milosavljevic <dannym@scratchpost.org>2017-07-15 12:48:24 +0200
commitc3b5b1bb49084ac816750cedc8f03a55884b2dd8 (patch)
treeb653702eb50897f3beb2247e609e9cd1ba6be1d2 /gnu/packages/web.scm
parent95c36822e8358fcdc5ff1459c8a21d36041d512b (diff)
downloadguix-c3b5b1bb49084ac816750cedc8f03a55884b2dd8.tar
guix-c3b5b1bb49084ac816750cedc8f03a55884b2dd8.tar.gz
gnu: python-internetarchive: Heed disabled test suite.
* gnu/packages/web.scm (python-internetarchive)[arguments]: Heed disable test suite.
Diffstat (limited to 'gnu/packages/web.scm')
-rw-r--r--gnu/packages/web.scm15
1 files changed, 10 insertions, 5 deletions
diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index df1ff79253..90ddd9f7c7 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -4716,11 +4716,16 @@ command-line arguments or read from stdin.")
(modify-phases %standard-phases
(delete 'check)
(add-after 'install 'check
- (lambda* (#:key inputs outputs #:allow-other-keys)
- (add-installed-pythonpath inputs outputs)
- (setenv "PATH" (string-append (assoc-ref outputs "out") "/bin"
- ":" (getenv "PATH")))
- (zero? (system* "py.test")))))))
+ (lambda* (#:key inputs outputs target (tests? (not target)) #:allow-other-keys)
+ (if tests?
+ (begin
+ (add-installed-pythonpath inputs outputs)
+ (setenv "PATH" (string-append (assoc-ref outputs "out") "/bin"
+ ":" (getenv "PATH")))
+ (zero? (system* "py.test")))
+ (begin
+ (format #t "test suite not run~%")
+ #t)))))))
(propagated-inputs
`(("python-requests" ,python-requests)
("python-jsonpatch" ,python-jsonpatch-0.4)