~ruther/guix-local

60595d3415d643126465fbda03cd1a8964d77bbe — Vinicius Monego 11 months ago f99cc5b
gnu: Add python-pytest-twisted.

* gnu/packages/python-check.scm (python-pytest-twisted): New variable.

Change-Id: I550ed9c65fdfd06febcb2d5582f0739673ff68b2
1 files changed, 29 insertions(+), 0 deletions(-)

M gnu/packages/python-check.scm
M gnu/packages/python-check.scm => gnu/packages/python-check.scm +29 -0
@@ 3362,6 3362,35 @@ friendly library for concurrency and async I/O in Python.")
    ;; Either license applies.
    (license (list license:expat license:asl2.0))))

(define-public python-pytest-twisted
  (package
    (name "python-pytest-twisted")
    (version "1.14.3")
    (source
     (origin
       (method url-fetch)
       (uri (pypi-uri "pytest_twisted" version))
       (sha256
        (base32 "0gkz7ybdj45v4mmfyyryx6lz75hizi23zi9n5mcsdnqfpk5m1q9p"))))
    (build-system pyproject-build-system)
    (arguments
     (list
      #:test-flags
      #~(list "-k" (string-append
                    ;; AssertionError
                    "not test_sigint_for_regular_tests"
                    ;; TimeoutExpired
                    " and not test_sigint_for_inline_callbacks_tests"))))
    (propagated-inputs (list python-decorator python-greenlet))
    (native-inputs (list python-pytest
                         python-setuptools
                         python-twisted
                         python-wheel))
    (home-page "https://github.com/pytest-dev/pytest-twisted")
    (synopsis "Twisted plugin for Pytest")
    (description "This package provides a Twisted plugin for Pytest.")
    (license license:bsd-3)))

(define-public python-pytest-vcr
  ;; This commit fixes integration with pytest-5
  (let ((commit "4d6c7b3e379a6a7cba0b8f9d20b704dc976e9f05")