devel/py-eval-type-backport 0.4.0 FreeBSD
Like typing._eval_type, but lets older Python versions use newer typing features
- System
- FreeBSD
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- Last update
- Commit
3f6efd2cae- License
- MIT
- Categories
- devel, python
- Package size
- 12.2 KiB, 40.5 KiB installed
Description
eval_type_backport is a tiny package providing a replacement for typing._eval_type to support newer typing features in older Python versions.
Yes, that's very specific, and yes, typing._eval_type is a protected function that you shouldn't normally be using. Really this package is specifically made for pydantic/pydantic#7873.
Specifically, this transforms X | Y into typing.Union[X, Y] and list[X] into typing.List[X] etc. (for all the types made generic in PEP 585) if the original syntax is not supported in the current Python version.
In the other systems
| System | Port | Version |
|---|---|---|
| FreeBSD | devel/py-eval-type-backport | 0.4.0 |
| MidnightBSD | devel/py-eval-type-backport | 0.3.1_1 |
| HardenedBSD | devel/py-eval-type-backport | 0.4.0 |
| GhostBSD | devel/py-eval-type-backport | 0.4.0 |
Install
Binary package:
pkg install py312-eval-type-backport
From the ports tree:
cd /usr/ports/devel/py-eval-type-backport/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= py312-eval-type-backport>0:devel/py-eval-type-backport
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.4.0 | 0.4.0 | - | 0.2.2 | 0.4.0 |
| FreeBSD:14:quarterly | 0.4.0 | 0.4.0 | n/a | 0.2.2 | 0.4.0 |
| FreeBSD:15:latest | 0.4.0 | 0.4.0 | n/a | 0.2.2 | 0.2.2 |
| FreeBSD:15:quarterly | 0.4.0 | 0.4.0 | n/a | n/a | n/a |
| FreeBSD:16:latest | 0.4.0 | 0.4.0 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
As this port's Makefile names them.
Build 3
${PYTHON_PKGNAMEPREFIX}setuptools>=0: devel/py-setuptools${PYTHON_PKGNAMEPREFIX}setuptools-scm>=0: devel/py-setuptools-scm${PYTHON_PKGNAMEPREFIX}wheel>=0: devel/py-wheel
The full lists below include those, and their dependencies in turn.
Build dependencies 17
Run dependencies 7
Configuration
No options to configure.
- USES
- python
- Service scripts
- none
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| eval_type_backport-0.4.0.tar.gz | 10260 | 8397d25e6524c2e67b9576bb0636be27dea2192017711220c534ec2de921e9b0 |
Master sites 1
- PYPI