[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
137/242: gnu: Add python-openapi-spec-validator.
From: |
guix-commits |
Subject: |
137/242: gnu: Add python-openapi-spec-validator. |
Date: |
Wed, 11 May 2022 18:03:17 -0400 (EDT) |
apteryx pushed a commit to branch wip-ipython-polyglossia
in repository guix.
commit 6b5abe79f13826ce868e91112ef26b4db20591fd
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Sun Apr 17 14:22:02 2022 -0400
gnu: Add python-openapi-spec-validator.
* gnu/packages/python-web.scm (python-openapi-spec-validator): New variable.
---
gnu/packages/python-web.scm | 55 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 55 insertions(+)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 4b7d01052d..9c026ba53c 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -1483,6 +1483,61 @@ JSON Schema Specification Draft 2020-12.
@end itemize")
(license license:bsd-3)))
+(define-public python-openapi-spec-validator
+ (package
+ (name "python-openapi-spec-validator")
+ (version "0.4.0")
+ (source
+ (origin
+ (method git-fetch) ;no tests in pypi release
+ (uri (git-reference
+ (url "https://github.com/p1c2u/openapi-spec-validator")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1q09sjh4hsc0c8yqbd97h5mp6rwh427y6zyn8kv8wljk6sa0fs4q"))))
+ (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" "-vv"
+ ;; The example tests attempt to fetch resources from
+ ;; the Internet (see:
+ ;;
https://github.com/p1c2u/openapi-spec-validator/issues/151).
+ "-k" "not Example and not Exampe"))))
+ (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-jsonschema
+ python-openapi-schema-validator
+ python-pyyaml
+ python-requests
+ python-setuptools))
+ (home-page "https://github.com/p1c2u/openapi-spec-validator")
+ (synopsis "OpenAPI spec validator")
+ (description "OpenAPI Spec Validator is a Python library that validates an
+OpenAPI specification against the OpenAPI 2.0 (also known as Swagger), OpenAPI
+3.0 and OpenAPI 3.1 specifications. The validator aims to check for full
+compliance with the specification.")
+ (license license:asl2.0)))
+
(define-public python-openid
(package
(name "python-openid")
- 128/242: download: Add a mirror for CTAN., (continued)
- 128/242: download: Add a mirror for CTAN., guix-commits, 2022/05/11
- 129/242: gnu: texlive-latex-geometry: Propagate texlive-latex-graphics., guix-commits, 2022/05/11
- 134/242: gnu: Add python-strict-rfc3339., guix-commits, 2022/05/11
- 132/242: gnu: python-ipython-documentation: Also build info and pdf targets., guix-commits, 2022/05/11
- 138/242: gnu: Add python-cbor2., guix-commits, 2022/05/11
- 136/242: gnu: Add python-openapi-schema-validator., guix-commits, 2022/05/11
- 140/242: gnu: Add python-httpcore-bootstrap., guix-commits, 2022/05/11
- 146/242: gnu: python-sqlalchemy: Update to 1.4.35., guix-commits, 2022/05/11
- 149/242: gnu: python-fakeredis: Update to 1.7.1., guix-commits, 2022/05/11
- 144/242: gnu: Add python-socksio., guix-commits, 2022/05/11
- 137/242: gnu: Add python-openapi-spec-validator.,
guix-commits <=
- 145/242: gnu: python-sqlalchemy: Run tests in parallel via xdist., guix-commits, 2022/05/11
- 141/242: gnu: Add python-httpx-bootstrap., guix-commits, 2022/05/11
- 150/242: gnu: python-falcon: Update to 3.1.0., guix-commits, 2022/05/11
- 152/242: gnu: Add python-openapi-core., guix-commits, 2022/05/11
- 147/242: gnu: Add python-pecan., guix-commits, 2022/05/11
- 157/242: gnu: python-numba: Update to 0.55.1., guix-commits, 2022/05/11
- 158/242: gnu: python-pandas: Build and run tests in parallel., guix-commits, 2022/05/11
- 162/242: gnu: python-umap-learn: Update to 0.5.3., guix-commits, 2022/05/11
- 167/242: gnu: python-jupyter-protocol: Update to 0.2.0., guix-commits, 2022/05/11
- 177/242: gnu: python-can: Update to 4.0.0., guix-commits, 2022/05/11