git: e79e0ec15bba - main - converters/py-gotenberg-client: New port
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 18 Feb 2024 12:19:53 UTC
The branch main has been updated by grembo:
URL: https://cgit.FreeBSD.org/ports/commit/?id=e79e0ec15bba1912974de7706beaf7e6c71cdb23
commit e79e0ec15bba1912974de7706beaf7e6c71cdb23
Author: Michael Gmelin <grembo@FreeBSD.org>
AuthorDate: 2024-02-12 14:34:05 +0000
Commit: Michael Gmelin <grembo@FreeBSD.org>
CommitDate: 2024-02-18 12:18:52 +0000
converters/py-gotenberg-client: New port
Python client for interfacing with the Gotenberg API
---
converters/Makefile | 1 +
converters/py-gotenberg-client/Makefile | 32 ++++++++++++++++++++++++++++++++
converters/py-gotenberg-client/distinfo | 3 +++
converters/py-gotenberg-client/pkg-descr | 5 +++++
4 files changed, 41 insertions(+)
diff --git a/converters/Makefile b/converters/Makefile
index 419d4ab9d7ba..5c769f0ea3f6 100644
--- a/converters/Makefile
+++ b/converters/Makefile
@@ -147,6 +147,7 @@
SUBDIR += py-bencoder
SUBDIR += py-better-bencode
SUBDIR += py-bsdconv
+ SUBDIR += py-gotenberg-client
SUBDIR += py-rencode
SUBDIR += py-svglib
SUBDIR += py-text-unidecode
diff --git a/converters/py-gotenberg-client/Makefile b/converters/py-gotenberg-client/Makefile
new file mode 100644
index 000000000000..9178b555cfb8
--- /dev/null
+++ b/converters/py-gotenberg-client/Makefile
@@ -0,0 +1,32 @@
+PORTNAME= gotenberg-client
+PORTVERSION= 0.5.0
+CATEGORIES= converters python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+DISTNAME= ${PORTNAME:S/-/_/}-${PORTVERSION}
+
+MAINTAINER= grembo@FreeBSD.org
+COMMENT= Python client for interfacing with the Gotenberg API
+WWW= https://gotenberg.dev/docs/clients
+
+LICENSE= MPL20
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hatchling>=1.21.0:devel/py-hatchling@${PY_FLAVOR}
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}httpx>=0.26:www/py-httpx@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}typing-extensions>=4.9.0:devel/py-typing-extensions@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}python-magic>=0.4.27:devel/py-python-magic@${PY_FLAVOR}
+TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=0:devel/py-pytest@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pytest-httpx>=0:devel/py-pytest-httpx@${PY_FLAVOR}
+
+USES= python
+USE_PYTHON= autoplist pep517
+
+TEST_ENV= PYTHONPATH=${WRKSRC}/src
+
+NO_ARCH= yes
+
+do-test:
+ cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest -v -rs -o addopts=
+
+.include <bsd.port.mk>
diff --git a/converters/py-gotenberg-client/distinfo b/converters/py-gotenberg-client/distinfo
new file mode 100644
index 000000000000..2e8a1d743b3e
--- /dev/null
+++ b/converters/py-gotenberg-client/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1707590649
+SHA256 (gotenberg_client-0.5.0.tar.gz) = 097151c959d9ad9c6292694dac454a07a511489a353086df924f489190084425
+SIZE (gotenberg_client-0.5.0.tar.gz) = 311021
diff --git a/converters/py-gotenberg-client/pkg-descr b/converters/py-gotenberg-client/pkg-descr
new file mode 100644
index 000000000000..d0d13f2e8241
--- /dev/null
+++ b/converters/py-gotenberg-client/pkg-descr
@@ -0,0 +1,5 @@
+This is a Python client for interfacing with Gotenberg, which in turn is
+a wrapper around powerful tools for PDF generation and creation in various
+ways, using a stateless API.
+
+It's a very powerful tool to generate and manipulate PDFs.