mirror of
https://github.com/openbsd/ports.git
synced 2026-06-17 23:13:55 +02:00
52 lines
1.2 KiB
Makefile
52 lines
1.2 KiB
Makefile
COMMENT= command-line HTTP client
|
|
|
|
# intentionally no py- prefix (port directory name is wrong)
|
|
MODPY_DISTV= 3.2.4
|
|
GH_TAGNAME= ${MODPY_DISTV}
|
|
GH_ACCOUNT= httpie
|
|
GH_PROJECT= httpie
|
|
WRKDIST= ${WRKDIR}/cli-${MODPY_DISTV}
|
|
REVISION= 2
|
|
|
|
CATEGORIES= www net
|
|
|
|
HOMEPAGE= https://httpie.io/
|
|
|
|
# BSD
|
|
PERMIT_PACKAGE= Yes
|
|
|
|
MODULES= lang/python
|
|
MODPY_PYBUILD= setuptools
|
|
|
|
# tests require network access
|
|
# ignore tests using devel/py-test-lazy-fixture
|
|
# which is broken with newer pytest
|
|
MODPY_PYTEST_ARGS= --ignore tests/test_cookie_on_redirects.py \
|
|
--ignore tests/test_sessions.py \
|
|
--ignore tests/test_update_warnings.py
|
|
|
|
RUN_DEPENDS= net/py-socks \
|
|
textproc/py-charset-normalizer \
|
|
textproc/py-defusedxml \
|
|
textproc/py-pygments \
|
|
www/py-multidict \
|
|
www/py-requests \
|
|
www/py-requests-toolbelt \
|
|
devel/py-rich
|
|
TEST_DEPENDS= devel/py-test-httpbin \
|
|
devel/py-test-mock \
|
|
devel/py-mock \
|
|
www/py-responses
|
|
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>
|