openbsd-ports/www/py-httpie/Makefile
2022-11-13 15:30:15 +00:00

46 lines
1.1 KiB
Makefile

COMMENT = command-line HTTP client
MODPY_EGG_VERSION = 3.2.1
GH_TAGNAME = ${MODPY_EGG_VERSION}
GH_ACCOUNT = httpie
GH_PROJECT = httpie
REVISION = 1
CATEGORIES = www net
HOMEPAGE = https://httpie.io/
# BSD
PERMIT_PACKAGE = Yes
MODULES = lang/python
MODPY_PYBUILD = setuptools
# requires network access
MODPY_PYTEST = Yes
RUN_DEPENDS = net/py-socks${MODPY_FLAVOR} \
textproc/py-charset-normalizer${MODPY_FLAVOR} \
textproc/py-defusedxml${MODPY_FLAVOR} \
textproc/py-pygments${MODPY_FLAVOR} \
www/py-multidict${MODPY_FLAVOR} \
www/py-requests${MODPY_FLAVOR} \
www/py-requests-toolbelt${MODPY_FLAVOR}
TEST_DEPENDS = devel/py-test-httpbin${MODPY_FLAVOR} \
devel/py-test-lazy-fixture${MODPY_FLAVOR} \
devel/py-mock${MODPY_FLAVOR} \
www/py-responses${MODPY_FLAVOR}
TEST_ENV = PY_IGNORE_IMPORTMISMATCH=1
PORTHOME = ${WRKSRC}
pre-test:
# check for docutils presence then calls rst2pseudoxml.py
# our docutils installs rst2pseudoxml
rm -f ${WRKSRC}/tests/test_docs.py
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/httpie
${INSTALL_DATA} ${WRKSRC}/README.md ${PREFIX}/share/doc/httpie/
.include <bsd.port.mk>