COMMENT =	offline-first command-line browser

MODPY_DISTV =	3.2

DISTNAME =	offpunk
PKGNAME =	offpunk-${MODPY_DISTV}

# PyPI version isn't current, so get it straight from git.
DIST_TUPLE += srht lioploum offpunk v${MODPY_DISTV} .

CATEGORIES =	net www

HOMEPAGE =	https://offpunk.net

MAINTAINER =	Edd Barrett <edd@openbsd.org>

# GPL Affero V3
PERMIT_PACKAGE =	Yes

MODULES =		lang/python

MODPY_PYBUILD =		hatchling

WRKDIST =		${WRKDIR}/offpunk-v${MODPY_DISTV}

BUILD_DEPENDS =		devel/gettext,-tools

# py-readability-lxml is an optional dep that we don't yet have a port of.
RUN_DEPENDS =		textproc/py-charset-normalizer \
			security/py-cryptography \
			textproc/py-feedparser \
			www/py-beautifulsoup4 \
			textproc/py-lxml-html-clean \
			devel/py-setproctitle

TEST_DEPENDS =		devel/py-test-mock

# XXX: tests fail with:
# subprocess.CalledProcessError: Command 'less --version' returned non-zero exit status 1.

.include <bsd.port.mk>
