BSD Ports

devel/py-prance 26.7.19.0 FreeBSD

Resolve Swagger/OpenAPI 2.0 and 3.0.0 parser

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
Last update
Commit
dcc9271697
License
MIT
Categories
devel, python
Package size
69.3 KiB, 331.0 KiB installed

Description

Prance provides parsers for Swagger/OpenAPI 2.0 and 3.0 API specifications in Python. It uses flex, swagger_spec_validator or openapi_spec_validator to validate specifications, but additionally resolves JSON references in accordance with the OpenAPI spec.

Mostly the latter involves handling non-URI references; OpenAPI is fine with providing relative file paths, whereas JSON references require URIs at this point in time.

In the other systems

SystemPortVersion
FreeBSDdevel/py-prance26.7.19.0
OpenBSDdevel/py-prance26.7.19.0p0
DragonFlydevel/py-prance23.6.21.0
MidnightBSDdevel/py-prance23.6.21.0_2

Install

Binary package:

pkg install py312-prance

From the ports tree:

cd /usr/ports/devel/py-prance/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	py312-prance>0:devel/py-prance

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest26.7.19.026.7.19.00.21.8.023.6.21.026.7.19.0
FreeBSD:14:quarterly26.7.19.026.7.19.0n/a23.6.21.026.7.19.0
FreeBSD:15:latest26.7.19.026.7.19.0n/a23.6.21.023.6.21.0
FreeBSD:15:quarterly26.7.19.026.7.19.0n/an/an/a
FreeBSD:16:latest26.7.19.026.7.19.0n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Build 3

Runtime 4

The full lists below include those, and their dependencies in turn.

Build dependencies 17
Run dependencies 42

Configuration

Options name: devel_prance

OptionDefaultDescription
CLIoffCommand-line interface support
FASToffFast deepcopy support
FLEXoffUse py-flex as backend
ICUoffUnicode support
OSVonUse py-openapi-spec-validator as backend
SSVoffUse py-swagger-spec-validator as backend
USES
python
Service scripts
none

Files

distinfo 1
FileSizeSHA256
prance-26.7.19.0.tar.gz2.814867e+0618c52bc9ace4de2b58be1d810543d675a8640f06c2ea5d06427f12f1e612be8d
Master sites 1
  • PYPI

Commit history 3

DateCommitCreditsLog message
dcc9271697 Po-Chuan Hsieh devel/py-prance: Add FAST option
7a7ab400fe Po-Chuan Hsieh devel/py-prance: Update to 26.7.19.0
Changes: https://github.com/RonnyPfannschmidt/prance/blob/main/CHANGES.rst Notified by: kai (via private mail)
f1737bbd1c Kai Knoblich devel/py-prance: Allow build with py-swagger-spec-validator 3.0+
* Local test suite runs fine. * Bump PORTREVISION due package change. Approved by: portmgr (blanket)