gnu: Update (gnu packages python-web) phase styles.

* gnu/packages/python-web.scm (python-openid, python-terminado)
(python-geventhttpclient, python-cachecontrol, python-webencodings)
(python-s3transfer)[arguments]: Substitute INVOKE for SYSTEM* and end
phases with #t.
This commit is contained in:
Tobias Geerinckx-Rice 2018-03-02 04:39:51 +01:00
parent 6a192184ec
commit 12adfdf0b6
No known key found for this signature in database
GPG key ID: 0DB0FF884F556D79

View file

@ -254,7 +254,8 @@ (define-public python-webencodings
(modify-phases %standard-phases (modify-phases %standard-phases
(replace 'check (replace 'check
(lambda _ (lambda _
(zero? (system* "py.test" "-v" "webencodings/tests.py"))))))) (invoke "py.test" "-v" "webencodings/tests.py")
#t)))))
(native-inputs (native-inputs
`(("python-pytest" ,python-pytest))) `(("python-pytest" ,python-pytest)))
(home-page "https://github.com/SimonSapin/python-webencodings") (home-page "https://github.com/SimonSapin/python-webencodings")
@ -295,7 +296,8 @@ (define-public python-openid
(modify-phases %standard-phases (modify-phases %standard-phases
(replace 'check (replace 'check
(lambda _ (lambda _
(zero? (system* "./admin/runtests"))))))) (invoke "./admin/runtests")
#t)))))
(properties `((python2-variant . ,(delay python2-openid)))) (properties `((python2-variant . ,(delay python2-openid))))
(propagated-inputs (propagated-inputs
`(("python-defusedxml" ,python-defusedxml))) `(("python-defusedxml" ,python-defusedxml)))
@ -451,7 +453,8 @@ (define-public python-tornado
;; (lambda _ ;; (lambda _
;; ;; 'setup.py test' hits an AssertionError on BSD-specific ;; ;; 'setup.py test' hits an AssertionError on BSD-specific
;; ;; "tornado/platform/kqueue.py". This is the supported method: ;; ;; "tornado/platform/kqueue.py". This is the supported method:
;; (zero? (system* "python" "-m" "tornado.test"))))) ;; (invoke- "python" "-m" "tornado.test")
;; #t)))
#:tests? #f)) #:tests? #f))
(native-inputs (native-inputs
`(("python-certifi" ,python-certifi))) `(("python-certifi" ,python-certifi)))
@ -522,7 +525,8 @@ (define-public python-terminado
(modify-phases %standard-phases (modify-phases %standard-phases
(replace 'check (replace 'check
(lambda _ (lambda _
(zero? (system* "nosetests"))))))) (invoke "nosetests")
#t)))))
(home-page "https://github.com/takluyver/terminado") (home-page "https://github.com/takluyver/terminado")
(synopsis "Terminals served to term.js using Tornado websockets") (synopsis "Terminals served to term.js using Tornado websockets")
(description "This package provides a Tornado websocket backend for the (description "This package provides a Tornado websocket backend for the
@ -1519,7 +1523,8 @@ (define-public python-geventhttpclient
(add-after 'install 'check (add-after 'install 'check
(lambda* (#:key inputs outputs #:allow-other-keys) (lambda* (#:key inputs outputs #:allow-other-keys)
(add-installed-pythonpath inputs outputs) (add-installed-pythonpath inputs outputs)
(zero? (system* "py.test" "src/geventhttpclient/tests" "-v"))))))) (invoke "py.test" "src/geventhttpclient/tests" "-v")
#t)))))
(native-inputs (native-inputs
`(("python-pytest" ,python-pytest))) `(("python-pytest" ,python-pytest)))
(propagated-inputs (propagated-inputs
@ -1629,7 +1634,8 @@ (define-public python-cachecontrol
(setenv "PYTHONPATH" (setenv "PYTHONPATH"
(string-append (getcwd) "/build/lib:" (string-append (getcwd) "/build/lib:"
(getenv "PYTHONPATH"))) (getenv "PYTHONPATH")))
(zero? (system* "py.test" "-vv"))))))) (invoke "py.test" "-vv")
#t)))))
(native-inputs (native-inputs
`(("python-pytest" ,python-pytest) `(("python-pytest" ,python-pytest)
("python-redis" ,python-redis) ("python-redis" ,python-redis)
@ -1715,7 +1721,8 @@ (define-public python-s3transfer
(lambda _ (lambda _
;; 7 of the 'integration' tests require network access or login ;; 7 of the 'integration' tests require network access or login
;; credentials. ;; credentials.
(zero? (system* "nosetests" "--exclude=integration"))))))) (invoke "nosetests" "--exclude=integration")
#t)))))
(native-inputs (native-inputs
`(("python-docutils" ,python-docutils) `(("python-docutils" ,python-docutils)
("python-mock" ,python-mock) ("python-mock" ,python-mock)
@ -1831,7 +1838,8 @@ (define-public python-flask-restplus
;; (modify-phases %standard-phases ;; (modify-phases %standard-phases
;; (replace 'check ;; (replace 'check
;; (lambda _ ;; (lambda _
;; (zero? (system* "nosetests"))))))) ;; (invoke "nosetests")
;; #t)))))
(propagated-inputs (propagated-inputs
`(("python-aniso8601" ,python-aniso8601) `(("python-aniso8601" ,python-aniso8601)
("python-flask" ,python-flask) ("python-flask" ,python-flask)