[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
131/166: gnu: Add python-openapi-spec-validator.
From: |
guix-commits |
Subject: |
131/166: gnu: Add python-openapi-spec-validator. |
Date: |
Tue, 19 Apr 2022 09:18:09 -0400 (EDT) |
apteryx pushed a commit to branch wip-ipython+polyglossia
in repository guix.
commit f3fc5065bf5a5cdfc9a42f14378e8a24d76a60d5
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 eab3c2a602..5112fa132b 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")
- 108/166: gnu: python-anyio: Update to 3.5.0., (continued)
- 108/166: gnu: python-anyio: Update to 3.5.0., guix-commits, 2022/04/19
- 127/166: gnu: python-websockets: Update to 10.3 and enable tests., guix-commits, 2022/04/19
- 128/166: gnu: Add python-strict-rfc3339., guix-commits, 2022/04/19
- 139/166: gnu: python-sqlalchemy: Run tests in parallel via xdist., guix-commits, 2022/04/19
- 90/166: gnu: python-click: Update to 8.1.2 and honor TESTS?., guix-commits, 2022/04/19
- 97/166: gnu: Add python-debugpy., guix-commits, 2022/04/19
- 102/166: gnu: python-nest-asyncio: Update to 1.5.5., guix-commits, 2022/04/19
- 110/166: gnu: python-bleach: Update to 5.0.0., guix-commits, 2022/04/19
- 113/166: gnu: python-nbconvert: Update to 6.5.0., guix-commits, 2022/04/19
- 115/166: gnu: python-nbval: Fix build., guix-commits, 2022/04/19
- 131/166: gnu: Add python-openapi-spec-validator.,
guix-commits <=
- 132/166: gnu: Add python-cbor2., guix-commits, 2022/04/19
- 152/166: gnu: python-pandas: Build and run tests in parallel., guix-commits, 2022/04/19
- 155/166: gnu: python-pynndescent: Update to 0.5.6., guix-commits, 2022/04/19
- 89/166: gnu: Add font-gfs-ambrosia., guix-commits, 2022/04/19
- 111/166: gnu: Add texlive-unicode-math., guix-commits, 2022/04/19
- 120/166: gnu: python-sphinx: Propagate TexLive dependencies., guix-commits, 2022/04/19
- 119/166: gnu: Add python-docrepr., guix-commits, 2022/04/19
- 130/166: gnu: Add python-openapi-schema-validator., guix-commits, 2022/04/19
- 135/166: gnu: Add python-httpx-bootstrap., guix-commits, 2022/04/19
- 147/166: gnu: Add python-jupyterlab-server., guix-commits, 2022/04/19