~ruther/guix-local

2825921d1e0f34eab28b423dfeffc4234efe3d23 — Ricardo Wurmus 1 year, 4 months ago aa704e5
gnu: python-httpretty: Enable tests.

* gnu/packages/web.scm (python-httpretty)[arguments]: Enable most tests.
[native-inputs]: Add nss-certs-for-test, python-freezegun, python-httplib2,
and python-pyparsing.

Change-Id: I08d2c14a2e81559d41dc38f0eeb34c2d6c59125a
1 files changed, 11 insertions(+), 5 deletions(-)

M gnu/packages/web.scm
M gnu/packages/web.scm => gnu/packages/web.scm +11 -5
@@ 118,6 118,7 @@
  #:use-module (gnu packages bittorrent)
  #:use-module (gnu packages boost)
  #:use-module (gnu packages build-tools)
  #:use-module (gnu packages certs)
  #:use-module (gnu packages check)
  #:use-module (gnu packages compression)
  #:use-module (gnu packages cpp)


@@ 7110,17 7111,22 @@ efficient where possible.")
        (base32 "0s1vjdaf3pk2xd0hvi5f7p3jm2rgwpbc734jdp9r50m1smfhxpi0"))))
    (build-system python-build-system)
    (arguments
     `(#:tests? #f  ; Tests require network access.
       #:phases
       (modify-phases %standard-phases
     (list
      #:phases
      '(modify-phases %standard-phases
         (replace 'check
           (lambda* (#:key tests? #:allow-other-keys)
             (when tests?
               (invoke "nosetests")))))))
               (setenv "EVENTLET_NO_GREENDNS" "YES")
               (invoke "nosetests" "--exclude=(passthrough|streaming|httpretty_should_handle)")))))))
    (native-inputs
     (list python-coverage
     (list nss-certs-for-test
           python-coverage
           python-eventlet
           python-freezegun
           python-httplib2
           python-nose
           python-pyparsing
           python-rednose
           python-requests
           python-sure