Port details |
- py-eval-type-backport Like typing._eval_type, but lets older Python versions use newer typing features
- 0.2.2 devel
=0 Package not present on quarterly.This port was created during this quarter. It will be in the next quarterly branch but not the current one. - Maintainer: sunpoet@FreeBSD.org
 - Port Added: 2025-05-18 03:39:36
- Last Update: 2025-05-18 03:14:42
- Commit Hash: 72e5097
- Also Listed In: python
- License: MIT
- WWW:
- https://github.com/alexmojaki/eval_type_backport
- 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.
¦ ¦ ¦ ¦ 
- Manual pages:
- FreshPorts has no man page information for this port.
- pkg-plist: as obtained via:
make generate-plist - There is no configure plist information for this port.
- Dependency lines:
-
- ${PYTHON_PKGNAMEPREFIX}eval-type-backport>0:devel/py-eval-type-backport@${PY_FLAVOR}
- To install the port:
- cd /usr/ports/devel/py-eval-type-backport/ && make install clean
- To add the package, run one of these commands:
- pkg install devel/py-eval-type-backport
- pkg install py311-eval-type-backport
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above. NOTE: This is a Python port. Instead of py311-eval-type-backport listed in the above command, you can pick from the names under the Packages section.- PKGNAME: py311-eval-type-backport
- Package flavors (<flavor>: <package>)
- py311: py311-eval-type-backport
- distinfo:
- TIMESTAMP = 1745936006
SHA256 (eval_type_backport-0.2.2.tar.gz) = f0576b4cf01ebb5bd358d02314d31846af5e07678387486e2c798af0e7d849c1
SIZE (eval_type_backport-0.2.2.tar.gz) = 9079
Packages (timestamps in pop-ups are UTC):
- Dependencies
- NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
- Build dependencies:
-
- py311-setuptools>=0 : devel/py-setuptools@py311
- py311-setuptools-scm>=0 : devel/py-setuptools-scm@py311
- py311-wheel>=0 : devel/py-wheel@py311
- python3.11 : lang/python311
- py311-build>=0 : devel/py-build@py311
- py311-installer>=0 : devel/py-installer@py311
- Test dependencies:
-
- python3.11 : lang/python311
- Runtime dependencies:
-
- python3.11 : lang/python311
- There are no ports dependent upon this port
Configuration Options:
- No options to configure
- Options name:
- devel_py-eval-type-backport
- USES:
- python
- FreshPorts was unable to extract/find any pkg message
- Master Sites:
|
Number of commits found: 1
Commit History - (may be incomplete: for full details, see links to repositories near top of page) |
Commit | Credits | Log message |
0.2.2 18 May 2025 03:14:42
    |
Po-Chuan Hsieh (sunpoet)  |
devel/py-eval-type-backport: Add py-eval-type-backport 0.2.2
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. |
Number of commits found: 1
|