d578e272b7
2.24.0: Improvements pyOpenSSL TLS implementation is now only used if Python either doesn’t have an ssl module or doesn’t support SNI. Previously pyOpenSSL was unconditionally used if available. This applies even if pyOpenSSL is installed via the requests[security] extra Redirect resolution should now only occur when allow_redirects is True. No longer perform unnecessary Content-Length calculation for requests that won’t use it.
39 lines
1.5 KiB
Makefile
39 lines
1.5 KiB
Makefile
# $NetBSD: Makefile,v 1.47 2020/06/19 20:45:41 adam Exp $
|
|
|
|
DISTNAME= requests-2.24.0
|
|
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
|
|
CATEGORIES= devel www python
|
|
MASTER_SITES= ${MASTER_SITE_PYPI:=r/requests/}
|
|
|
|
MAINTAINER= imil@NetBSD.org
|
|
HOMEPAGE= https://requests.readthedocs.io/
|
|
COMMENT= HTTP library, written in Python, for human beings
|
|
LICENSE= apache-2.0
|
|
|
|
DEPENDS+= ${PYPKGPREFIX}-OpenSSL>=0.14:../../security/py-OpenSSL
|
|
DEPENDS+= ${PYPKGPREFIX}-certifi>=2017.4.17:../../security/py-certifi
|
|
DEPENDS+= ${PYPKGPREFIX}-chardet>=3.0.2:../../converters/py-chardet
|
|
DEPENDS+= ${PYPKGPREFIX}-cryptography>=1.3.4:../../security/py-cryptography
|
|
DEPENDS+= ${PYPKGPREFIX}-idna>=2.5:../../www/py-idna
|
|
DEPENDS+= ${PYPKGPREFIX}-urllib3>=1.12.1:../../www/py-urllib3
|
|
TEST_DEPENDS+= ${PYPKGPREFIX}-Socks>=1.5.8:../../net/py-Socks
|
|
TEST_DEPENDS+= ${PYPKGPREFIX}-test-cov-[0-9]*:../../devel/py-test-cov
|
|
TEST_DEPENDS+= ${PYPKGPREFIX}-test-httpbin-[0-9]*:../../www/py-test-httpbin
|
|
TEST_DEPENDS+= ${PYPKGPREFIX}-test-mock-[0-9]*:../../devel/py-test-mock
|
|
TEST_DEPENDS+= ${PYPKGPREFIX}-test-xdist-[0-9]*:../../devel/py-test-xdist
|
|
|
|
PYTHON_VERSIONED_DEPENDENCIES= test:test
|
|
|
|
USE_LANGUAGES= # none
|
|
REPLACE_PYTHON+= requests/certs.py
|
|
|
|
.include "../../lang/python/pyversion.mk"
|
|
.if ${_PYTHON_VERSION} == 27
|
|
TEST_DEPENDS= # none; py-test-httpbin is incompatible with py27
|
|
do-test:
|
|
.endif
|
|
|
|
.include "../../lang/python/application.mk"
|
|
.include "../../lang/python/egg.mk"
|
|
.include "../../lang/python/versioned_dependencies.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|