guix_mirror_bot pushed a commit to branch python-team
in repository guix.

commit d1ccfa8e62e8599504988a6a5267f30b3c5406e1
Author: Sharlatan Hellseher <sharlata...@gmail.com>
AuthorDate: Mon Aug 4 22:55:37 2025 +0100

    gnu: python-flasgger: Reduce closure size.
    
    * gnu/packages/python-xyz.scm (python-flasgger): Update to 0.9.7.1.
      [arguments] <test-flags>: Skip example tests to reduce closure size
      from native inputs.
      <phases>: Remove 'prepare-check.
      [native-inputs]: Remove python-apispec, python-apispec-webframeworks,
      python-decorator, python-flask-restful, python-flex,
      python-marshmallow, python-pytest-cov, and python-wheel.
    
    Change-Id: I724855c2cdd22d9d36c0f7716ae183cf3b7db382
---
 gnu/packages/python-xyz.scm | 38 +++++++++++---------------------------
 1 file changed, 11 insertions(+), 27 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index e856f4006c..fcc4fb82bd 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -27368,28 +27368,20 @@ web frameworks.")
     (name "python-flasgger")
     (version "0.9.7.1")
     (source
-      (origin
-        (method git-fetch)
-        (uri (git-reference
+     (origin
+       (method git-fetch)
+       (uri (git-reference
               (url "https://github.com/rochacbruno/flasgger";)
               (commit (string-append "v" version))))
-        (file-name (git-file-name name version))
-        (sha256
-          (base32 "08dnn19swfa5lsscj38hil41b3xnqvwgwnx9q2vg9kv26bs1zcah"))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "08dnn19swfa5lsscj38hil41b3xnqvwgwnx9q2vg9kv26bs1zcah"))))
     (build-system pyproject-build-system)
     (arguments
      (list
-      ;; This test fails due to missing fixtures
-      #:test-flags '(list "-k" "not test_swag")
-      #:phases
-      '(modify-phases %standard-phases
-        (add-after 'unpack 'prepare-check
-          (lambda _
-            ;; This requires a dummy package "flasgger_package" to be 
installed.
-            (delete-file "examples/package_example.py")
-            ;; These fail with an internal server error
-            (for-each delete-file '("examples/marshmallow_apispec.py"
-                                    "examples/validation.py")))))))
+      #:test-flags
+      #~(list "--ignore=tests/test_examples.py"
+              "-k" "not test_swag")))
     (propagated-inputs
      (list python-flask
            python-pyyaml
@@ -27397,16 +27389,8 @@ web frameworks.")
            python-mistune
            python-six))
     (native-inputs
-     (list python-apispec
-           python-apispec-webframeworks
-           python-decorator
-           python-flask-restful
-           python-flex
-           python-marshmallow
-           python-pytest
-           python-pytest-cov
-           python-setuptools
-           python-wheel))
+     (list python-pytest
+           python-setuptools))
     (home-page "https://github.com/rochacbruno/flasgger/";)
     (synopsis "Extract Swagger specs from your Flask project")
     (description "@code{python-flasgger} allows extracting Swagger specs

Reply via email to