pkgsrc/www/py-httpie/Makefile
wiz a130f0dcad py-httpie: update to 2.6.0.
# 2.6.0

- Added support for formatting & coloring of JSON bodies preceded by non-JSON data (e.g., an XXSI prefix).
- Added charset auto-detection when `Content-Type` doesn’t include it.
- Added `--response-charset` to allow overriding the response encoding for terminal display purposes.
- Added `--response-mime` to allow overriding the response mime type for coloring and formatting for the terminal.
- Added the ability to silence warnings through using `-q` or `--quiet` twice (e.g. `-qq`)
- Added installed plugin list to `--debug` output.
- Fixed duplicate keys preservation in JSON data.

# 2.5.0

Blog post: [What’s new in HTTPie 2.5.0](https://httpie.io/blog/httpie-2.5.0)

- Added `--raw` to allow specifying the raw request body without extra processing as
  an alternative to `stdin`.
- Added support for XML formatting.
- Added internal support for file-like object responses to improve adapter plugin support.
- Fixed `--continue --download` with a single byte to be downloaded left.
- Fixed `--verbose` HTTP 307 redirects with streamed request body.
- Fixed handling of session files with `Cookie:` followed by other headers.
2021-11-23 14:09:25 +00:00

37 lines
1.3 KiB
Makefile

# $NetBSD: Makefile,v 1.10 2021/11/23 14:09:25 wiz Exp $
DISTNAME= httpie-2.6.0
PKGNAME= ${PYPKGPREFIX}-${EGG_NAME}
CATEGORIES= www python
MASTER_SITES= ${MASTER_SITE_PYPI:=h/httpie/}
MAINTAINER= imil@NetBSD.org
HOMEPAGE= https://github.com/jakubroztocil/httpie
COMMENT= Human-friendly command line HTTP client
LICENSE= original-bsd
DEPENDS+= ${PYPKGPREFIX}-charset-normalizer>=2.0.0:../../converters/py-charset-normalizer
DEPENDS+= ${PYPKGPREFIX}-curses-[0-9]*:../../devel/py-curses
DEPENDS+= ${PYPKGPREFIX}-defusedxml>=0.6.0:../../textproc/py-defusedxml
DEPENDS+= ${PYPKGPREFIX}-pygments>=2.5.2:../../textproc/py-pygments
DEPENDS+= ${PYPKGPREFIX}-requests>=2.22.0:../../devel/py-requests
DEPENDS+= ${PYPKGPREFIX}-requests-toolbelt>=0.9.1:../../devel/py-requests-toolbelt
TEST_DEPENDS+= ${PYPKGPREFIX}-responses-[0-9]*:../../net/py-responses
TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
TEST_DEPENDS+= ${PYPKGPREFIX}-test-httpbin-[0-9]*:../../www/py-test-httpbin
USE_LANGUAGES= # none
PYTHON_VERSIONS_INCOMPATIBLE= 27
post-install:
.for bin in http https
cd ${DESTDIR}${PREFIX}/bin && \
${MV} ${bin} ${bin}-${PYVERSSUFFIX} || ${TRUE}
.endfor
do-test:
cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX}
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"