Prisma Client Python is a next-generation ORM built on top of Prisma that has been designed from the ground up for ease of use and correctness. Prisma is a TypeScript ORM with zero-cost type safety for your database, although don't worry, Prisma Client Python interfaces with Prisma using Rust, you don't need Node or TypeScript. Prisma Client Python can be used in any Python backend application. This can be a REST API, a GraphQL API or anything else that needs a database. WWW: https://github.com/RobertCraigie/prisma-client-py Note: Although the upstream repository has been archived, this port is needed by LLM proxy functions of misc/py-litellm, which is in preparation.
38 lines
1.2 KiB
Makefile
38 lines
1.2 KiB
Makefile
PORTNAME= prisma
|
|
DISTVERSION= 0.15.0
|
|
CATEGORIES= databases python
|
|
MASTER_SITES= PYPI
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= tagattie@FreeBSD.org
|
|
COMMENT= Type-safe database access for Python
|
|
WWW= https://github.com/RobertCraigie/prisma-client-py
|
|
|
|
LICENSE= APACHE20
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}httpx>=0.19.0:www/py-httpx@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}Jinja2>=2.11.2:devel/py-Jinja2@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}pydantic2>=1.11.0<3:devel/py-pydantic2@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}click>=7.1.2:devel/py-click@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}python-dotenv>=0.12.0:www/py-python-dotenv@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}typing-extensions>=4.5.0:devel/py-typing-extensions@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}tomlkit>0:textproc/py-tomlkit@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}nodeenv>0:devel/py-nodeenv@${PY_FLAVOR}
|
|
|
|
USES= python
|
|
|
|
USE_PYTHON= autoplist concurrent distutils
|
|
|
|
NO_ARCH= yes
|
|
|
|
PORTDOCS= README.md
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
post-install-DOCS-on:
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_MAN} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
|
|
|
|
.include <bsd.port.mk>
|