openbsd-ports/net/py-telegram/Makefile
sthen 77c488cf43 update to py3-telegram-0.16.0, tested with net/tg
patch to drop RDEP on setuptools, it's only used to locate the bundled
linux/darwin libs which we remove anyway

(there's a newer version, but it needs an extra dep)
2023-01-26 12:57:56 +00:00

31 lines
549 B
Makefile

COMMENT = Python wrapper for Telegram tdlib
MODPY_EGG_VERSION = 0.16.0
DISTNAME = python-telegram-${MODPY_EGG_VERSION}
PKGNAME = ${DISTNAME:S/^python-/py-/}
CATEGORIES = net
HOMEPAGE = https://github.com/alexander-akhmetov/python-telegram
# MIT
PERMIT_PACKAGE = Yes
MODULES = lang/python
MODPY_PI = Yes
MODPY_PYBUILD = setuptools
FLAVORS = python3
FLAVOR = python3
RUN_DEPENDS = net/tdlib
NO_TEST = Yes
# remove bundled binaries
post-install:
rm -rf ${PREFIX}/lib/python${MODPY_VERSION}/site-packages/telegram/lib
.include <bsd.port.mk>