diff options
author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-07-28 15:44:21 +0100 |
---|---|---|
committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-08-08 16:50:03 +0100 |
commit | b6fe7a1d280066490964952b609e34b835d8db7c (patch) | |
tree | 2353dd3fc9eb4ff4ecc28c4dc08e786fe58c48aa | |
parent | 390fdad7e3557d17b3bffc5da1dbe842b488dbe9 (diff) |
gnu: python-flask-restx: Switch to pyproject, fix buld.
* gnu/packages/python-web.scm (python-flask-restx):
[build-system]: Use pyproject.
[argument] <test-flags>: Utilze it and rework skipped tests.
<phases>: Use default 'check.
[propagated-inputs]: Add python-importlib-resources and python-werkzeug.
[native-inputs]: Add python-setuptools.
Change-Id: Idd82b4d255854a21953533c3a66c74adeb6ac596
-rw-r--r-- | gnu/packages/python-web.scm | 53 |
1 files changed, 30 insertions, 23 deletions
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 4a842f2403..a0be85746a 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -9094,40 +9094,47 @@ requests.") (name "python-flask-restx") (version "1.3.0") (source - ;; We fetch from the Git repo because there are no tests in the PyPI - ;; archive. (origin - (method git-fetch) + (method git-fetch) ;no tests in PyPI archive (uri (git-reference - (url "https://github.com/python-restx/flask-restx") - (commit version))) + (url "https://github.com/python-restx/flask-restx") + (commit version))) (file-name (git-file-name name version)) (sha256 (base32 "1qmm3i1cdv0bvzsc1gn4ql2dsf1fbx85fk69vcmzpsdxzczmw508")))) - (build-system python-build-system) - (propagated-inputs - (list python-aniso8601 python-flask python-jsonschema python-pytz)) + (build-system pyproject-build-system) + (arguments + (list + ;; 1214 passed, 6 skipped, 16 deselected, 3 warnings + #:test-flags + #~(list "--benchmark-skip" + ;; ValueError: http://www.google.com is not a valid URL. Domain + ;; does not exists. + "--deselect=tests/test_inputs.py::URLTest::test_check" + "-k" (string-join + ;; See: <https://github.com/python-restx/flask-restx/issues/620>. + (list "not test_rfc822_value" + "test_iso8601_value" + ;; assert 404 == 2000 + "test_specs_endpoint_host_and_subdomain" + ;; ValueError: test@gmail.com is not a valid email + "test_valid_value_check") + " and not ")))) (native-inputs (list python-blinker python-faker python-pytest python-pytest-benchmark python-pytest-flask - python-pytest-mock)) - (arguments - `(#:phases - (modify-phases %standard-phases - (replace 'check - (lambda _ - (invoke "pytest" "--benchmark-skip" "-k" - ;; Those tests need internet access - (string-join - '("not test_check" - "not test_valid_value_check" - "not test_override_app_level" - "not test_redirect" - "not test_swagger") - " and "))))))) + python-pytest-mock + python-setuptools)) + (propagated-inputs + (list python-aniso8601 + python-flask + python-importlib-resources + python-jsonschema + python-pytz + python-werkzeug)) (home-page "https://github.com/python-restx/flask-restx") (synopsis "Framework for fast, easy and documented API development with Flask") |