www/py-drf-spectacular 0.30.0 FreeBSD
Sane/flexible OpenAPI 3 schema generation for Django REST framework
- System
- FreeBSD
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- Last update
- Commit
f5532f8f62- License
- BSD3CLAUSE
- Categories
- www, python
- Package size
- 201.8 KiB, 1121.1 KiB installed
Description
This project has 3 goals:
* Extract as much schema information from DRF as possible. * Provide flexibility to make the schema usable in the real world (not only toy examples). * Generate a schema that works well with the most popular client generators.
The code is a heavily modified fork of the DRF OpenAPI generator, which is/was lacking all of the below listed features:
* Serializers modelled as components. (arbitrary nesting + recursion supported) * @extend_schema decorator for customization of APIView, Viewsets, function-based views, and @action * Authentication support (DRF natives included, easily extendable) * Custom serializer class support (easily extendable) * SerializerMethodField() type via type hinting or @extend_schema_field * i18n support, Tags extraction, Description extraction from docstrings * Request/response/parameter examples, Callback operations * Vendor specification extensions (x-*) in info, operations, parameters, components, and security schemes * Sane fallbacks and sane operation_id naming (based on path) * Schema serving with SpectacularAPIView (Redoc and Swagger-UI views are also available) * Optional input/output serializer component split
In the other systems
The newest version among them is 0.30.0, as upstream numbers it.
| System | Port | Version | Vulnerabilities | Status | Maintainer | Last update |
|---|---|---|---|---|---|---|
| FreeBSD | www/py-drf-spectacular | 0.30.0 newest | none known | - | [email protected] | 2026-07-15 |
| DragonFly | www/py-drf-spectacular | 0.28.0_1 behind since 2026-07-15 | none known | - | [email protected] | - |
| HardenedBSD | www/py-drf-spectacular | 0.30.0 newest | no data | - | [email protected] | - |
| GhostBSD | www/py-drf-spectacular | 0.30.0 newest | no data | - | [email protected] | - |
Version history 1
Upstream's version as each commit to the port's Makefile set it, or as this site first saw it in the system's packages; the tree's own revisions are not versions here.
Install
Binary package:
pkg install py312-drf-spectacular
From the ports tree:
cd /usr/ports/www/py-drf-spectacular/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= py312-drf-spectacular>0:www/py-drf-spectacular
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 0.30.0 | 0.30.0 | - | 0.28.0_1 | 0.30.0 |
| FreeBSD:14:quarterly | 0.30.0 | 0.30.0 | n/a | 0.28.0_1 | 0.30.0 |
| FreeBSD:15:latest | 0.30.0 | 0.30.0 | n/a | 0.28.0_1 | 0.28.0_1 |
| FreeBSD:15:quarterly | 0.30.0 | 0.30.0 | n/a | n/a | n/a |
| FreeBSD:16:latest | 0.30.0 | 0.30.0 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependency graph
Ports that need it on the left, what it needs to run on the right; at most 8 of each. "Dependencies" below lists them all.
Dependencies
As this port's Makefile names them.
Build 1
${PYTHON_PKGNAMEPREFIX}wheel>0: devel/py-wheel
Runtime 6
${PYTHON_PKGNAMEPREFIX}django52>=2.2: www/py-django52${PYTHON_PKGNAMEPREFIX}djangorestframework>=3.10.3: www/py-djangorestframework${PYTHON_PKGNAMEPREFIX}inflection>=0.3.1: devel/py-inflection${PYTHON_PKGNAMEPREFIX}jsonschema>=2.6.0: devel/py-jsonschema${PYTHON_PKGNAMEPREFIX}uritemplate>=2.0.0: net/py-uritemplate${PYTHON_PKGNAMEPREFIX}pyyaml>=5.1: devel/py-pyyaml
The full lists below include those, and their dependencies in turn.
Build dependencies 16
Run dependencies 30
- archivers/liblz4
- archivers/zstd
- databases/py-sqlite3
- databases/py-sqlparse
- databases/sqlite3
- devel/gettext-runtime
- devel/libedit
- devel/libffi
- devel/py-attrs
- devel/py-inflection
- devel/py-jsonschema
- devel/py-jsonschema-specifications
- devel/py-pyyaml
- devel/py-referencing
- devel/py-rpds-py
- devel/py-typing-extensions
- devel/readline
- lang/python312
- lang/python315
- lang/tcl86
- math/libtommath
- math/mpdecimal
- net/py-uritemplate
- print/indexinfo
- textproc/expat2
- textproc/libyaml
- www/py-asgiref
- www/py-django52
- www/py-djangorestframework
- www/py-drf-spectacular-sidecar
Required by 2
Configuration
Options name: www_drf-spectacular
| Option | Default | Description |
|---|---|---|
| SIDECAR | on | Enable self-contained Swagger/Redoc UI installation |
- USES
- python
- Service scripts
- none
- Conflicts with
- ${PYTHON_PKGNAMEPREFIX}*drf-spectacular
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| drf_spectacular-0.30.0.tar.gz | 252311 | 53e79e7ba00e240441b63c32273754a5368e4c2ab44a19f2595277cc1cd559c9 |
Master sites 1
- PYPI