[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
146/204: gnu: Add python-openapi-core.
From: |
guix-commits |
Subject: |
146/204: gnu: Add python-openapi-core. |
Date: |
Wed, 20 Apr 2022 02:03:36 -0400 (EDT) |
apteryx pushed a commit to branch wip-ipython-polyglossia
in repository guix.
commit 82a3d3c157c17c9e25f43e701bd51d86ca524c8b
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 38567eaab8..fbc6c996d4 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")
- 156/204: gnu: python-umap-learn: Update to 0.5.3., (continued)
- 156/204: gnu: python-umap-learn: Update to 0.5.3., guix-commits, 2022/04/20
- 176/204: gnu: python-bitstruct: Update to 8.14.0., guix-commits, 2022/04/20
- 188/204: gnu: Remove python2-jmespath., guix-commits, 2022/04/20
- 189/204: gnu: python-croniter: Update to 1.3.4., guix-commits, 2022/04/20
- 195/204: gnu: markets: Add python-wrapper to fix build., guix-commits, 2022/04/20
- 70/204: gnu: python-pytest-shutil: Adjust to use python-path., guix-commits, 2022/04/20
- 90/204: gnu: python-click: Update to 8.1.2 and honor TESTS?., guix-commits, 2022/04/20
- 108/204: gnu: python-anyio: Update to 3.5.0., guix-commits, 2022/04/20
- 143/204: gnu: python-fakeredis: Update to 1.7.1., guix-commits, 2022/04/20
- 145/204: gnu: Add python-dictpath., guix-commits, 2022/04/20
- 146/204: gnu: Add python-openapi-core.,
guix-commits <=
- 147/204: gnu: Add python-jupyterlab-server., guix-commits, 2022/04/20
- 148/204: gnu: python-hypothesis-6.23: Update to 6.43.3., guix-commits, 2022/04/20
- 93/204: gnu: python-black: Update to 22.3.0., guix-commits, 2022/04/20
- 101/204: gnu: Add python-ipyparallel-bootstrap., guix-commits, 2022/04/20
- 111/204: gnu: Add texlive-unicode-math., guix-commits, 2022/04/20
- 114/204: gnu: Add python-jupyter-server-mathjax., guix-commits, 2022/04/20
- 115/204: gnu: python-nbval: Fix build., guix-commits, 2022/04/20
- 126/204: gnu: python-ipython-documentation: Also build info and pdf targets., guix-commits, 2022/04/20
- 150/204: gnu: python-llvmlite: Update to 0.38.0., guix-commits, 2022/04/20
- 175/204: gnu: Add python-argparse-addons., guix-commits, 2022/04/20