[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
136/233: gnu: Add python-openapi-schema-validator.
From: |
guix-commits |
Subject: |
136/233: gnu: Add python-openapi-schema-validator. |
Date: |
Sun, 24 Apr 2022 23:39:55 -0400 (EDT) |
apteryx pushed a commit to branch wip-ipython-polyglossia
in repository guix.
commit ca21e7b378e42fb30d7de5f7342d7af06736fbf4
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Sun Apr 17 09:10:38 2022 -0400
gnu: Add python-openapi-schema-validator.
* gnu/packages/python-web.scm (python-openapi-schema-validator): New
variable.
---
gnu/packages/python-web.scm | 54 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 54 insertions(+)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 786c3878ce..29b8271e94 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -1429,6 +1429,60 @@ is Python’s.")
(define-public python2-webencodings
(package-with-python2 python-webencodings))
+(define-public python-openapi-schema-validator
+ (package
+ (name "python-openapi-schema-validator")
+ (version "0.2.3")
+ (source
+ (origin
+ (method git-fetch) ;no tests in pypi release
+ (uri (git-reference
+ (url "https://github.com/p1c2u/openapi-schema-validator")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1swm8h74nhg63nxk347blwq9f1qn6iiq3zisndcvm7axkq3pc2df"))))
+ (build-system python-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'remove-coverage-pytest-options
+ (lambda _
+ (substitute* "pyproject.toml"
+ (("^--cov.*") ""))))
+ ;; XXX: PEP 517 manual build copied from python-isort.
+ (replace 'build
+ (lambda _
+ (invoke "python" "-m" "build" "--wheel" "--no-isolation" ".")))
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "pytest"))))
+ (replace 'install
+ (lambda _
+ (let ((whl (car (find-files "dist" "\\.whl$"))))
+ (invoke "pip" "--no-cache-dir" "--no-input"
+ "install" "--no-deps" "--prefix" #$output whl)))))))
+ (native-inputs (list python-poetry-core python-pypa-build python-pytest))
+ (propagated-inputs
+ (list python-isodate
+ python-jsonschema
+ python-rfc3339-validator
+ python-strict-rfc3339))
+ (home-page "https://github.com/p1c2u/openapi-schema-validator")
+ (synopsis "OpenAPI schema validation library for Python")
+ (description "Openapi-schema-validator is a Python library that validates
+a schema against:
+@itemize
+@item OpenAPI Schema Specification v3.0 which is an extended subset of the
+JSON Schema Specification Wright Draft 00.
+@item OpenAPI Schema Specification v3.1 which is an extended superset of the
+JSON Schema Specification Draft 2020-12.
+@end itemize")
+ (license license:bsd-3)))
+
(define-public python-openid
(package
(name "python-openid")
- 109/233: gnu: python-nbclient: Update to 0.6.0., (continued)
- 109/233: gnu: python-nbclient: Update to 0.6.0., guix-commits, 2022/04/24
- 111/233: gnu: Add texlive-unicode-math., guix-commits, 2022/04/24
- 116/233: gnu: python-send2trash: Update to 1.8.0 and update home page., guix-commits, 2022/04/24
- 117/233: gnu: python-notebook: Update to 6.4.10., guix-commits, 2022/04/24
- 118/233: gnu: Add python-nbdime., guix-commits, 2022/04/24
- 120/233: gnu: python-sphinx: Propagate TexLive dependencies., guix-commits, 2022/04/24
- 121/233: gnu: Add python-pep621., guix-commits, 2022/04/24
- 123/233: gnu: Add python-sphinx-sitemap., guix-commits, 2022/04/24
- 124/233: gnu: texlive-fontspec: Add missing propagated inputs., guix-commits, 2022/04/24
- 128/233: download: Add a mirror for CTAN., guix-commits, 2022/04/24
- 136/233: gnu: Add python-openapi-schema-validator.,
guix-commits <=
- 138/233: gnu: Add python-cbor2., guix-commits, 2022/04/24
- 157/233: gnu: python-numba: Update to 0.55.1., guix-commits, 2022/04/24
- 142/233: gnu: python-httpx: Update to 0.22.0., guix-commits, 2022/04/24
- 166/233: gnu: python-sparqlkernel: Use gexps and fix inputs., guix-commits, 2022/04/24
- 168/233: gnu: python-jupyter-kernel-mgmt: Update to 0.5.1 and disable tests., guix-commits, 2022/04/24
- 171/233: gnu: python-cmarkgfm: Update to 0.8.0., guix-commits, 2022/04/24
- 175/233: gnu: python-parse-type: Update to 0.6.0, fixing build., guix-commits, 2022/04/24
- 181/233: gnu: Add python-argparse-addons., guix-commits, 2022/04/24
- 197/233: gnu: Remove python-orator due to being broken and unmaintained., guix-commits, 2022/04/24
- 151/233: gnu: Add python-dictpath., guix-commits, 2022/04/24