guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

04/05: gnu: python-apispec: Update to 4.0.0.


From: guix-commits
Subject: 04/05: gnu: python-apispec: Update to 4.0.0.
Date: Fri, 27 Nov 2020 09:41:24 -0500 (EST)

mbakke pushed a commit to branch master
in repository guix.

commit 1a6173fe980378191ff7f0d5ac6bf53fa0522553
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Fri Nov 27 14:54:58 2020 +0100

    gnu: python-apispec: Update to 4.0.0.
    
    * gnu/packages/python-xyz.scm (python-apispec): Update to 4.0.0.
    [arguments]: New field.
    [native-inputs]: Remove PYTHON-FLASK, PYTHON-TORNADO, PYTHON-BOTTLE, and
    PYTHON-MOCK.
---
 gnu/packages/python-xyz.scm | 25 ++++++++++++++++++-------
 1 file changed, 18 insertions(+), 7 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 7ce6a56..a558d5c 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -16547,24 +16547,35 @@ complex datatypes to and from native Python 
datatypes.")
 (define-public python-apispec
   (package
     (name "python-apispec")
-    (version "0.25.3")
+    (version "4.0.0")
     (source
      (origin
       (method url-fetch)
       (uri (pypi-uri "apispec" version))
       (sha256
         (base32
-          "0kxa8723zbisx10363yh4mmmn4higxrspymbjfz5zq8f644zagm9"))))
+          "12n4w5zkn4drcn8izq68vmixmqvz6abviqkdn4ip0kaax3jjh3in"))))
     (build-system python-build-system)
+    (arguments
+     '(#:phases (modify-phases %standard-phases
+                  (add-after 'unpack 'disable-prance-tests
+                    (lambda _
+                      ;; Disable validation tests since they require the
+                      ;; optional 'prance' library which is not yet in Guix.
+                      (substitute* "tests/test_ext_marshmallow_openapi.py"
+                        (("def test_openapi_tools_validate.*" all)
+                         (string-append "@pytest.mark.xfail\n" all)))))
+                  (replace 'check
+                    (lambda _
+                      (setenv "PYTHONPATH"
+                              (string-append "./build/lib:"
+                                             (getenv "PYTHONPATH")))
+                      (invoke "pytest" "-vv"))))))
     (propagated-inputs
      `(("python-pyyaml" ,python-pyyaml)))
     (native-inputs
      `(("python-pytest" ,python-pytest)
-       ("python-flask" ,python-flask)
-       ("python-marshmallow" ,python-marshmallow)
-       ("python-tornado" ,python-tornado)
-       ("python-bottle" ,python-bottle)
-       ("python-mock" ,python-mock)))
+       ("python-marshmallow" ,python-marshmallow)))
     (home-page "https://github.com/marshmallow-code/apispec";)
     (synopsis "Swagger 2.0 API specification generator")
     (description "@code{python-apispec} is a pluggable API specification



reply via email to

[Prev in Thread] Current Thread [Next in Thread]