summaryrefslogtreecommitdiff
path: root/www/py-httpx-aiohttp/Makefile
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--www/py-httpx-aiohttp/Makefile31
1 files changed, 31 insertions, 0 deletions
diff --git a/www/py-httpx-aiohttp/Makefile b/www/py-httpx-aiohttp/Makefile
new file mode 100644
index 000000000000..f052fa630e49
--- /dev/null
+++ b/www/py-httpx-aiohttp/Makefile
@@ -0,0 +1,31 @@
+PORTNAME= httpx-aiohttp
+DISTVERSION= 0.1.4
+CATEGORIES= www python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+DISTNAME= ${PORTNAME:S/-/_/}-${DISTVERSION}
+
+MAINTAINER= tagattie@FreeBSD.org
+COMMENT= Aiohttp transport for HTTPX
+WWW= https://github.com/karpetrosyan/httpx-aiohttp
+
+LICENSE= BSD3CLAUSE
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hatchling>0:devel/py-hatchling@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}hatch-fancy-pypi-readme>0:devel/py-hatch-fancy-pypi-readme@${PY_FLAVOR}
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}aiohttp>=3<4:www/py-aiohttp@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}httpx>=0.28.1<1:www/py-httpx@${PY_FLAVOR}
+
+USES= python
+USE_PYTHON= autoplist pep517
+
+PORTDOCS= CHANGELOG.md README.md
+
+OPTIONS_DEFINE= DOCS
+
+post-install-DOCS-on:
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_MAN} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
+
+.include <bsd.port.mk>