[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
152/242: gnu: Add python-openapi-core.
From: |
guix-commits |
Subject: |
152/242: gnu: Add python-openapi-core. |
Date: |
Thu, 12 May 2022 14:14:23 -0400 (EDT) |
apteryx pushed a commit to branch master
in repository guix.
commit 3f9eafbedd5a9c833aed1954f8ad18b3a7699222
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Mon Apr 18 11:57:03 2022 -0400
gnu: Add python-openapi-core.
* gnu/packages/python-web.scm (python-openapi-core): New variable.
---
gnu/packages/python-web.scm | 65 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 65 insertions(+)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index e97630fc14..9836e81f6c 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -1588,6 +1588,71 @@ OpenAPI specification against the OpenAPI 2.0 (also
known as Swagger), OpenAPI
compliance with the specification.")
(license license:asl2.0)))
+(define-public python-openapi-core
+ (package
+ (name "python-openapi-core")
+ (version "0.14.2")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/p1c2u/openapi-core")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1npsibyf8zx6z230yl19kyap8g25kqvgm7z1w6rm6jxv58yqsp7r"))))
+ (build-system python-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "pytest" "-vv" "tests/unit"
+ ;; Ignore Pytest configuration in setup.cfg that adds
+ ;; unwanted flake8 and coverage options.
+ "-c" "/dev/null"
+ ;; This tests fails due to changes in Pytest; fixed
+ ;; but not yet released upstream
+ ;; (https://github.com/p1c2u/openapi-core/issues/158).
+ "-k" "not test_string_format_invalid_value")))))))
+ (native-inputs (list python-django
+ python-falcon
+ python-flask
+ python-poetry-core
+ python-pypa-build
+ python-pytest
+ python-responses))
+ (propagated-inputs
+ (list python-attrs
+ python-dictpath
+ python-isodate
+ python-jsonschema
+ python-lazy-object-proxy
+ python-more-itertools
+ python-openapi-schema-validator
+ python-openapi-spec-validator
+ python-parse
+ python-six
+ python-werkzeug))
+ (home-page "https://github.com/p1c2u/openapi-core")
+ (synopsis "OpenAPI core library")
+ (description "Openapi-core is a Python library that adds client-side and
+server-side support for the OpenAPI Specification v3. It has features such
+as:
+@itemize
+@item Validation of requests and responses
+@item Schema casting and unmarshalling
+@item Media type and parameters deserialization
+@item Security providers (API keys, Cookie, Basic and Bearer HTTP
+authentications)
+@item Custom deserializers and formats
+@item Integration with libraries and frameworks.
+@end itemize")
+ (license license:bsd-3)))
+
(define-public python-openid
(package
(name "python-openid")
- 204/242: gnu: emacsy: Use webkitgtk-with-libsoup2., (continued)
- 204/242: gnu: emacsy: Use webkitgtk-with-libsoup2., guix-commits, 2022/05/12
- 238/242: gnu: python-multidict: Update to 5.2.0., guix-commits, 2022/05/12
- 07/242: gnu: python-traitlets: Update to 5.1.1., guix-commits, 2022/05/12
- 39/242: gnu: Add python-jaraco-functools-bootstrap., guix-commits, 2022/05/12
- 60/242: gnu: python-factory-boy: Update to 3.2.1., guix-commits, 2022/05/12
- 133/242: gnu: python-websockets: Update to 10.3 and enable tests., guix-commits, 2022/05/12
- 132/242: gnu: python-ipython-documentation: Also build info and pdf targets., guix-commits, 2022/05/12
- 124/242: gnu: texlive-fontspec: Add missing propagated inputs., guix-commits, 2022/05/12
- 147/242: gnu: Add python-pecan., guix-commits, 2022/05/12
- 149/242: gnu: python-fakeredis: Update to 1.7.1., guix-commits, 2022/05/12
- 152/242: gnu: Add python-openapi-core.,
guix-commits <=
- 153/242: gnu: Add python-jupyterlab-server., guix-commits, 2022/05/12
- 155/242: gnu: python-numpy: Update to 1.21.6 and parallelize build/tests., guix-commits, 2022/05/12
- 158/242: gnu: python-pandas: Build and run tests in parallel., guix-commits, 2022/05/12
- 163/242: gnu: python-jupyter-server: Update to 1.16.0., guix-commits, 2022/05/12
- 159/242: gnu: python-pandas: Update to 1.4.2., guix-commits, 2022/05/12
- 166/242: gnu: python-sparqlkernel: Use gexps and fix inputs., guix-commits, 2022/05/12
- 169/242: gnu: xeus: Update to 2.4.1., guix-commits, 2022/05/12
- 173/242: gnu: mbed-tools: Update to 7.53.0 and relax click version requirement., guix-commits, 2022/05/12
- 184/242: gnu: sshoot: Update to 1.5.1., guix-commits, 2022/05/12
- 182/242: gnu: python-bitstruct: Update to 8.14.0., guix-commits, 2022/05/12