summaryrefslogtreecommitdiff
path: root/comms/py-streamdeck/Makefile
blob: 1c295ca318adf6cce35ad2c4170ff34706df54ed (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
PORTNAME=	streamdeck
DISTVERSION=	0.9.7
CATEGORIES=	comms python
MASTER_SITES=	PYPI
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}

MAINTAINER=	tiga@FreeBSD.org
COMMENT=	Python library to control the Elgato Stream Deck
WWW=		https://github.com/abcminiuser/python-elgato-streamdeck

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/LICENSE

BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools>0:devel/py-setuptools@${PY_FLAVOR} \
		${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
LIB_DEPENDS=	libhidapi.so:comms/hidapi
RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pillow>=8.1.1:graphics/py-pillow@${PY_FLAVOR}

USES=		dos2unix pytest python
USE_PYTHON=	autoplist pep517
PYTEST_ARGS=	test.py
# Note: PYTEST_ARGS isn't respected if pytest is placed in USE_PYTHON section

post-patch:
	${RM} ${WRKSRC}/src/StreamDeck/Transport/LibUSBHIDAPI.py.orig

NO_ARCH=	yes

TEST_WRKSRC=	${WRKSRC}/test

.include <bsd.port.mk>