*: Replace USES=pycryptography* with USE_PYTHON=cryptography{,_build,_test}

- Introduce USE_PYTHON=cryptography{,_build,_test}
- Switch all 96 ports from USES=pycryptography to with USE_PYTHON=cryptography{,_build,_test}
- Remove Mk/Uses/pycryptography.mk

PR:		273727
Approved by:	tcberner (portmgr)
Exp-run by:	antoine
2023Q4
Po-Chuan Hsieh 2023-09-29 22:19:56 +08:00
parent 2a4bb83e07
commit 3754fc5f19
No known key found for this signature in database
GPG Key ID: 9A4BD10F002DD04B
98 changed files with 216 additions and 231 deletions

View File

@ -1,46 +0,0 @@
# Handle dependency on security/py-cryptography[-legacy]
#
# Feature: pycryptography
# Usage: USES=pycryptography
# Valid ARGS: <none>, build, run
# <none>: default same as build,run
# build: add BUILD_DEPENDS
# run: add RUN_DEPENDS
# test: add TEST_DEPENDS
#
# MAINTAINER: portmgr@FreeBSD.org
#
.if ! defined(_INCLUDE_USES_PYCRYPTOGRAPHY_MK)
_INCLUDE_USES_PYCRYPTOGRAPHY_MK= YES
# valid arguments:
_PYCRYPTOGRAPHY_MK_VALID_MODES= build run test
# Suffixes
_PYCRYPTOGRAPHY_MK_SUFFIX_rust= #
_PYCRYPTOGRAPHY_MK_SUFFIX_legacy= -legacy
# Dependency
_PYCRYPTOGRAPHY_MK_SUFFIX= ${_PYCRYPTOGRAPHY_MK_SUFFIX_${PYCRYPTOGRAPHY_DEFAULT}}
_PYCRYPTOGRAPHY_MK_PKG= ${PYTHON_PKGNAMEPREFIX}cryptography${_PYCRYPTOGRAPHY_MK_SUFFIX}
_PYCRYPTOGRAPHY_MK_PORT= security/py-cryptography${_PYCRYPTOGRAPHY_MK_SUFFIX}
_PYCRYPTOGRAPHY_MK_DEPENDENCY= ${_PYCRYPTOGRAPHY_MK_PKG}>0:${_PYCRYPTOGRAPHY_MK_PORT}@${PY_FLAVOR}
# === parse version arguments ===
_PYCRYPTOGRAPHY_MK_MODES= # empty
. for _mode in ${_PYCRYPTOGRAPHY_MK_VALID_MODES}
. if ${pycryptography_ARGS:M${_mode}}
_PYCRYPTOGRAPHY_MK_MODES+= ${_mode}
. endif
. endfor
. if empty(_PYCRYPTOGRAPHY_MK_MODES)
_PYCRYPTOGRAPHY_MK_MODES= build run
. endif
# == add actual dependencies ===
. for _mode in ${_PYCRYPTOGRAPHY_MK_MODES}
${_mode:tu}_DEPENDS+= ${_PYCRYPTOGRAPHY_MK_DEPENDENCY}
. endfor
.endif

View File

@ -82,6 +82,14 @@
# prefix-less original name, e.g.
# bin/foo-2.7 --> bin/foo.
#
# cryptography_build
# - Depend on security/cryptography at build-time.
#
# cryptography - Depend on security/cryptography at run-time.
#
# cryptography_test
# - Depend on security/cryptography at test-time.
#
# cython - Depend on lang/cython at build-time.
#
# cython_run - Depend on lang/cython at run-time.
@ -317,6 +325,9 @@ _PYTHON_RELPORTDIR= lang/python
_VALID_PYTHON_FEATURES= allflavors \
autoplist \
concurrent \
cryptography_build \
cryptography \
cryptography_test \
cython \
cython_run \
cython_test \
@ -597,6 +608,25 @@ _PYTHONPKGLIST= ${WRKDIR}/.PLIST.pymodtmp
# - it uses USE_PYTHON=distutils
#
# cryptography* support
. if ${PYCRYPTOGRAPHY_DEFAULT} == rust
CRYPTOGRAPHY_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cryptography>=41.0.3_1,1:security/py-cryptography@${PY_FLAVOR}
. else
CRYPTOGRAPHY_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cryptography-legacy>=3.4.8_1,1:security/py-cryptography-legacy@${PY_FLAVOR}
. endif
. if defined(_PYTHON_FEATURE_CRYPTOGRAPHY_BUILD)
BUILD_DEPENDS+= ${CRYPTOGRAPHY_DEPENDS}
. endif
. if defined(_PYTHON_FEATURE_CRYPTOGRAPHY)
RUN_DEPENDS+= ${CRYPTOGRAPHY_DEPENDS}
. endif
. if defined(_PYTHON_FEATURE_CRYPTOGRAPHY_TEST)
TEST_DEPENDS+= ${CRYPTOGRAPHY_DEPENDS}
. endif
# cython* support
. if defined(_PYTHON_FEATURE_CYTHON)
BUILD_DEPENDS+= cython-${PYTHON_VER}:lang/cython@${PY_FLAVOR}

View File

@ -16,8 +16,9 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}scipy>0:science/py-scipy@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}requests>0:www/py-requests@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}PyOpenGL>0:graphics/py-PyOpenGL@${PY_FLAVOR}
USES= cmake gettext python pycryptography:run pyqt:5
USES= cmake gettext python pyqt:5
USE_PYQT= pyqt5
USE_PYTHON= cryptography
USE_GITHUB= yes
GH_ACCOUNT= Ultimaker
STRIP=

View File

@ -18,9 +18,9 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pyserial>=3.0:comms/py-pyserial@${PY_FLAVOR}
${PYTHON_PKGNAMEPREFIX}reedsolo>=1.5.3,<=1.6.0:devel/py-reedsolo@${PY_FLAVOR}
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pyelftools>0:devel/py-pyelftools@${PY_FLAVOR}
USES= python pycryptography:run
USES= python
USE_GITHUB= yes
USE_PYTHON= autoplist concurrent distutils pytest
USE_PYTHON= autoplist concurrent cryptography distutils pytest
GH_ACCOUNT= espressif
NO_ARCH= yes

View File

@ -23,8 +23,8 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cli-helpers>=2.2.1:devel/py-cli-helpers@${PY
${PYTHON_PKGNAMEPREFIX}sqlglot>=5.1.3:databases/py-sqlglot@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}sqlparse>=0.3.0<0.5.0:databases/py-sqlparse@${PY_FLAVOR}
USES= mysql pycryptography:run python
USE_PYTHON= autoplist concurrent distutils
USES= mysql python
USE_PYTHON= autoplist concurrent cryptography distutils
NO_ARCH= yes

View File

@ -33,7 +33,7 @@ OPTIONS_DEFAULT= SQLITE
DATABASES_DESC= Database Support
CRYPTO_DESC= Support for password encryption
CRYPTO_USES= pycryptography:run
CRYPTO_USE= PYTHON=cryptography
SQLITE_USES= sqlite
SQLITE_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}aiosqlite>0:databases/py-aiosqlite@${PY_FLAVOR}
MYSQL_USES= mysql

View File

@ -34,7 +34,7 @@ URL_DESC= URL type support
ARROW_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}arrow>=0.3.4:devel/py-arrow@${PY_FLAVOR}
BABEL_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}Babel>=1.3:devel/py-babel@${PY_FLAVOR}
COLOR_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}colour>=0.0.4:graphics/py-colour@${PY_FLAVOR}
ENCRYPTED_USES= pycryptography:run
ENCRYPTED_USE= PYTHON=cryptography
INTERVALS_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}intervals>=0.7.1:net/py-intervals@${PY_FLAVOR}
PASSWORD_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}passlib>=1.6<2.0:security/py-passlib@${PY_FLAVOR}
PENDULUM_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pendulum>=2.0.5:devel/py-pendulum@${PY_FLAVOR}

View File

@ -29,8 +29,8 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}arrow>=1.0.0:devel/py-arrow@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}six>=1.15.0:devel/py-six@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}terminaltables>=3.1.0:textproc/py-terminaltables@${PY_FLAVOR}
USES= python:3.8-3.11 pycryptography:run
USE_PYTHON= autoplist concurrent distutils
USES= python:3.8-3.11
USE_PYTHON= autoplist concurrent cryptography distutils
NO_ARCH= yes

View File

@ -12,10 +12,10 @@ LICENSE_FILE= ${WRKSRC}/COPYING
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}urllib3>=0:net/py-urllib3@${PY_FLAVOR}
USES= cpe python pycryptography:run
USES= cpe python
USE_GITHUB= yes
GH_ACCOUNT= openSUSE
USE_PYTHON= autoplist distutils noflavors pytest
USE_PYTHON= autoplist cryptography distutils noflavors pytest
NO_ARCH= yes
CPE_VENDOR= suse
CPE_PRODUCT= opensuse_osc

View File

@ -17,8 +17,8 @@ USE_GITHUB= yes
GH_ACCOUNT= google
GH_PROJECT= python-${PORTNAME}
USES= python pycryptography:run
USE_PYTHON= autoplist distutils pytest
USES= python
USE_PYTHON= autoplist cryptography distutils pytest
NO_ARCH= yes

View File

@ -23,8 +23,8 @@ RUN_DEPENDS= ${PYNUMPY} \
${PYTHON_PKGNAMEPREFIX}pyee>=9.0.0:devel/py-pyee@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pylibsrtp>=0.5.6:devel/py-pylibsrtp@${PY_FLAVOR}
USES= localbase python pycryptography:run
USE_PYTHON= autoplist concurrent distutils
USES= localbase python
USE_PYTHON= autoplist concurrent cryptography distutils
post-install:
${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/${PORTNAME}/codecs/*.so

View File

@ -15,8 +15,8 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}azure-core>=1.0.0<2.0.0:devel/py-azure-core@
${PYTHON_PKGNAMEPREFIX}msal-extensions>=0.3.0:devel/py-msal-extensions@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}six>=1.12.0:devel/py-six@${PY_FLAVOR}
USES= azurepy python pycryptography:run zip
USE_PYTHON= autoplist concurrent distutils
USES= azurepy python zip
USE_PYTHON= autoplist concurrent cryptography distutils
NO_ARCH= yes

View File

@ -15,8 +15,8 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}msrest>=0.5.0:net-mgmt/py-msrest@${PY_FLAVOR
${PYTHON_PKGNAMEPREFIX}azure-common>=1.1:www/py-azure-common@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}requests>=2.18.4:www/py-requests@${PY_FLAVOR}
USES= azurepy python pycryptography:run zip
USE_PYTHON= autoplist concurrent distutils
USES= azurepy python zip
USE_PYTHON= autoplist concurrent cryptography distutils
NO_ARCH= yes

View File

@ -16,8 +16,8 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}azure-common>=0:www/py-azure-common@${PY_FLA
${PYTHON_PKGNAMEPREFIX}azure-core>=1.10.0<2.0.0:devel/py-azure-core@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}msrest>=0.6.18:net-mgmt/py-msrest@${PY_FLAVOR}
USES= azurepy python pycryptography:run
USE_PYTHON= autoplist concurrent distutils
USES= azurepy python
USE_PYTHON= autoplist concurrent cryptography distutils
NO_ARCH= yes

View File

@ -14,8 +14,8 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}azure-common>=1.1.5:www/py-azure-common@${PY
${PYTHON_PKGNAMEPREFIX}requests>=0:www/py-requests@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}dateutil>=0:devel/py-dateutil@${PY_FLAVOR}
USES= azurepy python pycryptography:run
USE_PYTHON= autoplist concurrent distutils
USES= azurepy python
USE_PYTHON= autoplist concurrent cryptography distutils
NO_ARCH= yes

View File

@ -23,8 +23,8 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}keystoneauth1>=3.4.0:devel/py-keystoneauth1@
${PYTHON_PKGNAMEPREFIX}requests>=2.18.0:www/py-requests@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}stevedore>=1.20.0:devel/py-stevedore@${PY_FLAVOR}
USES= pycryptography:run python shebangfix
USE_PYTHON= autoplist concurrent distutils
USES= python shebangfix
USE_PYTHON= autoplist concurrent cryptography distutils
NO_ARCH= yes

View File

@ -19,8 +19,8 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}castellan>=0.4.0:devel/py-castellan@${PY_FLA
${PYTHON_PKGNAMEPREFIX}oslo.utils>=3.16.0:devel/py-oslo.utils@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pbr>=1.6:devel/py-pbr@${PY_FLAVOR}
USES= pycryptography:run python
USE_PYTHON= autoplist concurrent distutils
USES= python
USE_PYTHON= autoplist concurrent cryptography distutils
NO_ARCH= yes

View File

@ -37,8 +37,8 @@ TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}aws-xray-sdk>=0.93:devel/py-aws-xray-sdk@${
${PYTHON_PKGNAMEPREFIX}sshpubkeys>=3.1.0:security/py-sshpubkeys@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}yaml>=5.1:devel/py-yaml@${PY_FLAVOR}
USES= pycryptography:run python
USE_PYTHON= autoplist concurrent pep517 pytest
USES= python
USE_PYTHON= autoplist concurrent cryptography pep517 pytest
NO_ARCH= yes

View File

@ -14,8 +14,8 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}requests>=2.0.0<3:www/py-requests@${PY_FLAVO
${PYTHON_PKGNAMEPREFIX}pyjwt>=1.0.0<3:www/py-pyjwt@${PY_FLAVOR}
# cryptography>=0.6<43,1
USES= python pycryptography:run
USE_PYTHON= autoplist distutils
USES= python
USE_PYTHON= autoplist cryptography distutils
NO_ARCH= yes

View File

@ -23,8 +23,8 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}certifi>0:security/py-certifi@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}openssl>=17.5.0:security/py-openssl@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pytz>=2016.10:devel/py-pytz@${PY_FLAVOR}
USES= python:3.8-3.11 pycryptography:run
USE_PYTHON= autoplist distutils
USES= python:3.8-3.11
USE_PYTHON= autoplist cryptography distutils
NO_ARCH= yes

View File

@ -26,8 +26,8 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}appdirs>=1.3.0:devel/py-appdirs@${PY_FLAVOR}
${PYTHON_PKGNAMEPREFIX}yaml>=3.13:devel/py-yaml@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}requestsexceptions>=1.2.0:devel/py-requestsexceptions@${PY_FLAVOR}
USES= pycryptography:run python shebangfix
USE_PYTHON= autoplist concurrent distutils
USES= python shebangfix
USE_PYTHON= autoplist concurrent cryptography distutils
NO_ARCH= yes

View File

@ -32,9 +32,9 @@ TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}freezegun>=0:devel/py-freezegun@${PY_FLAVOR
git:devel/git \
svn:devel/subversion
USES= cpe python pycryptography:test shebangfix
USES= cpe python shebangfix
CPE_VENDOR= pypa
USE_PYTHON= autoplist concurrent distutils pytest
USE_PYTHON= autoplist concurrent cryptography_test distutils pytest
MAKE_ENV= PYTHONPATH=${WRKSRC}/src/
NO_ARCH= yes

View File

@ -38,7 +38,7 @@ OPTIONS_DEFAULT=CONCH HTTP2 SERIAL TLS
CONCH_DESC= Conch secure shell SSH
SERIAL_DESC= Serial port extension
CONCH_USES= pycryptography:run
CONCH_USE= PYTHON=cryptography
CONCH_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}appdirs>=1.4.0:devel/py-appdirs@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}bcrypt>=3.1.3:security/py-bcrypt@${PY_FLAVOR}
HTTP2_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}h2>=3.0<5.0:www/py-h2@${PY_FLAVOR} \

View File

@ -14,9 +14,9 @@ BUILD_DEPENDS= ${PY_SETUPTOOLS} \
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}dnspython>0:dns/py-dnspython@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}requests>0:www/py-requests@${PY_FLAVOR}
USES= python pycryptography:run
USES= python
USE_GITHUB= yes
GH_ACCOUNT= LetsDNS
USE_PYTHON= autoplist pep517
USE_PYTHON= autoplist cryptography pep517
.include <bsd.port.mk>

View File

@ -30,8 +30,8 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}asn1crypto>=1.3.0:devel/py-asn1crypto@${PY_F
${PYTHON_PKGNAMEPREFIX}requests-toolbelt>=0.9.1:www/py-requests-toolbelt@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}rq>=1.2.2:devel/py-rq@${PY_FLAVOR}
USES= pycryptography:run python
USE_PYTHON= autoplist concurrent distutils
USES= python
USE_PYTHON= autoplist concurrent cryptography distutils
NO_ARCH= yes

View File

@ -19,8 +19,8 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}beautifulsoup>=4:www/py-beautifulsoup@${PY_F
${PYTHON_PKGNAMEPREFIX}requests>=2:www/py-requests@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}tldextract>=2:dns/py-tldextract@${PY_FLAVOR}
USES= pycryptography:run python
USE_PYTHON= autoplist concurrent pep517
USES= python
USE_PYTHON= autoplist concurrent cryptography pep517
NO_ARCH= yes

View File

@ -31,7 +31,7 @@ DOQ_DESC= DNS over QUIC Support
IDNA_DESC= Internationalizede Domain Names in Application Support
TRIO_DESC= TRIO Support
DNSSEC_USES= pycryptography:run
DNSSEC_USE= PYTHON=cryptography
DOH_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}h2>=4.0.0:www/py-h2@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}httpx>=0.24.1:www/py-httpx@${PY_FLAVOR}
DOQ_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}aioquic>0:www/py-aioquic@${PY_FLAVOR}

View File

@ -30,8 +30,8 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}aiohttp-socks>=0.3:net/py-aiohttp-socks@${PY
${PYTHON_PKGNAMEPREFIX}secp256k1>0:math/py-secp256k1@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}sqlite3>=3.7.9:databases/py-sqlite3@${PY_FLAVOR}
USES= cpe python pycryptography:run shebangfix
USE_PYTHON= autoplist concurrent distutils
USES= cpe python shebangfix
USE_PYTHON= autoplist concurrent cryptography distutils
PYDISTUTILS_PKGNAME= Electrum

View File

@ -18,8 +18,8 @@ RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}aiohttp>=3.8:www/py-aiohttp@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}yarl>=1.7.2:www/py-yarl@${PY_FLAVOR}
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest-asyncio>0:devel/py-pytest-asyncio@${PY_FLAVOR}
USES= python pycryptography:build,run
USE_PYTHON= distutils autoplist pytest # 3 errors during tests, see https://github.com/ccxt/ccxt/issues/16661
USES= python
USE_PYTHON= distutils autoplist cryptography cryptography_build pytest # 3 errors during tests, see https://github.com/ccxt/ccxt/issues/16661
NO_ARCH= yes

View File

@ -20,8 +20,8 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}attrs>=0:devel/py-attrs@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}tld>=0:dns/py-tld@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}webob>=0.9.8:www/py-webob@${PY_FLAVOR}
USES= pycryptography:run python
USE_PYTHON= autoplist concurrent distutils
USES= python
USE_PYTHON= autoplist concurrent cryptography distutils
NO_ARCH= yes

View File

@ -51,8 +51,8 @@ TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}freezegun>=0.3.12:devel/py-freezegun@${PY_F
${PYTHON_PKGNAMEPREFIX}yaml>=3.12:devel/py-yaml@${PY_FLAVOR}
# testcontainers[mysql]>=3.0.3 is also required
USES= python pycryptography:test zip
USE_PYTHON= distutils cython concurrent autoplist pytest # 5 tests fail, depending on pyarrow, MySqlContainer, threadpoolctl
USES= python zip
USE_PYTHON= autoplist concurrent cryptography_test cython distutils pytest # 5 tests fail, depending on pyarrow, MySqlContainer, threadpoolctl
post-install:
# strip binaries

View File

@ -74,8 +74,8 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}Babel>=2.3.4:devel/py-babel@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}tooz>=1.58.0:devel/py-tooz@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}webob>=1.7.1:www/py-webob@${PY_FLAVOR}
USES= cpe pycryptography:run python
USE_PYTHON= autoplist concurrent distutils
USES= cpe python
USE_PYTHON= autoplist concurrent cryptography distutils
NO_ARCH= yes
USE_RC_SUBR= cinder-api cinder-scheduler cinder-volume

View File

@ -53,8 +53,8 @@ TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}virtualenv>=15.0:devel/py-virtualenv@${PY_F
${PYTHON_PKGNAMEPREFIX}authlib>=0.15.1:security/py-authlib@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}idna>=2.5:dns/py-idna@${PY_FLAVOR}
USES= python pycryptography:run cargo
USE_PYTHON= autoplist distutils
USES= cargo python
USE_PYTHON= autoplist cryptography distutils
USE_RC_SUBR= synapse
WRKSRC= ${WRKDIR}/${PORTNAME:S/-/_/}-${DISTVERSION}
CARGO_CONFIGURE= yes

View File

@ -15,8 +15,8 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pyjwt>=1.0.0<3:www/py-pyjwt@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}dateutil>=2.1.0<3:devel/py-dateutil@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}requests>=2.0.0<3:www/py-requests@${PY_FLAVOR}
USES= pycryptography:run python
USE_PYTHON= autoplist concurrent distutils
USES= python
USE_PYTHON= autoplist concurrent cryptography distutils
NO_ARCH= yes

View File

@ -13,8 +13,8 @@ LICENSE= MIT
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}netifaces>=0:net/py-netifaces@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pyserial>0:comms/py-pyserial@${PY_FLAVOR}
USES= python pycryptography:run
USE_PYTHON= distutils
USES= python
USE_PYTHON= cryptography distutils
USE_RC_SUBR= reticulum
GROUPS= _reticulum
USERS= _reticulum

View File

@ -20,8 +20,8 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}prometheus-client>=0:net-mgmt/py-prometheus-
${PYTHON_PKGNAMEPREFIX}yaml>=0:devel/py-yaml@${PY_FLAVOR} \
tor:security/tor
USES= python pycryptography:run shebangfix
USE_PYTHON= autoplist distutils
USES= python shebangfix
USE_PYTHON= autoplist cryptography distutils
NO_ARCH= yes

View File

@ -20,8 +20,8 @@ TEST_DEPENDS= tor:security/tor \
${PYTHON_PKGNAMEPREFIX}sqlite3>0:databases/py-sqlite3@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}tox>0:devel/py-tox@${PY_FLAVOR}
USES= python pycryptography:run shebangfix
USE_PYTHON= distutils autoplist concurrent
USES= python shebangfix
USE_PYTHON= autoplist concurrent cryptography distutils
NO_ARCH= yes
SHEBANG_FILES= *.py

View File

@ -23,8 +23,8 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}attrs>=19.2.0:devel/py-attrs@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}twisted>=17.5.0:devel/py-twisted@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}txtorcon>=18.0.2:security/py-txtorcon@${PY_FLAVOR}
USES= pycryptography:run python
USE_PYTHON= autoplist distutils
USES= python
USE_PYTHON= autoplist cryptography distutils
NO_ARCH= yes

View File

@ -14,8 +14,8 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}dateutil>0:devel/py-dateutil@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pytz>=0:devel/py-pytz@${PY_FLAVOR}
USES= python pycryptography:run
USE_PYTHON= autoplist concurrent distutils
USES= python
USE_PYTHON= autoplist concurrent cryptography distutils
NO_ARCH= yes
.include <bsd.port.mk>

View File

@ -13,8 +13,8 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pyspnego>=0:security/py-pyspnego@${PY_FLAVOR}
USES= pycryptography:run python
USE_PYTHON= autoplist concurrent distutils
USES= python
USE_PYTHON= autoplist concurrent cryptography distutils
NO_ARCH= yes

View File

@ -14,8 +14,8 @@ LICENSE= MIT
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}requests>=0:www/py-requests@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}suds>=0:net/py-suds@${PY_FLAVOR}
USES= pycryptography:run python
USE_PYTHON= autoplist concurrent distutils
USES= python
USE_PYTHON= autoplist concurrent cryptography distutils
NO_ARCH= yes

View File

@ -23,7 +23,7 @@ TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}flaky>=3.6.1:devel/py-flaky@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}trustme>=0.6.0:security/py-trustme@${PY_FLAVOR}
USES= cpe python
USE_PYTHON= autoplist concurrent distutils pytest
USE_PYTHON= autoplist concurrent cryptography_test distutils pytest
CPE_VENDOR= python
@ -43,7 +43,6 @@ SOCKS_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pysocks>=1.5.6<2.0:net/py-pysocks@${PY
SSL_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}certifi>=0:security/py-certifi@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}idna>=2.0.0:dns/py-idna@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}openssl>=0.14:security/py-openssl@${PY_FLAVOR}
SSL_USES= pycryptography:run,test
SSL_USES_OFF= pycryptography:test
SSL_USE= PYTHON=cryptography
.include <bsd.port.mk>

View File

@ -15,8 +15,8 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}libdnet>0:net/py-libdnet@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pypcap>0:net/py-pypcap@${PY_FLAVOR}
USES= cpe python pycryptography:run
USE_PYTHON= autoplist concurrent distutils
USES= cpe python
USE_PYTHON= autoplist concurrent cryptography distutils
NO_ARCH= yes

View File

@ -57,7 +57,7 @@ DBUS_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}dbus>=0:devel/py-dbus@${PY_FLAVOR}
NOTIFY2_IMPLIES= DBUS
NOTIFY2_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}notify2>=0:devel/py-notify2@${PY_FLAVOR}
PYGOBJECT_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}gobject3>=3.10.2:devel/py-gobject3@${PY_FLAVOR}
SSL_USES= pycryptography:run
SSL_USE= PYTHON=cryptography
post-patch:
@${REINPLACE_CMD} -e "s:%%DATADIR%%:'${DATADIR}':g" \

View File

@ -65,7 +65,8 @@ GH_TUPLE= mitre:access:0e67776:access/plugins/access \
mitre:stockpile:960f9ad:stockpile/plugins/stockpile \
mitre:training:b058b67:training/plugins/training
USES= dos2unix go:run python pycryptography:run
USES= dos2unix go:run python
USE_PYTHON= cryptography
NO_ARCH= yes
NO_BUILD= yes

View File

@ -27,10 +27,10 @@ RUN_DEPENDS= bash:shells/bash \
${PYTHON_PKGNAMEPREFIX}tftpy>0:ftp/py-tftpy@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}twisted>0:devel/py-twisted@${PY_FLAVOR}
USES= python pycryptography:run shebangfix
USES= python shebangfix
SHEBANG_FILES= bin/cowrie
USE_GITHUB= yes
USE_PYTHON= distutils noflavors autoplist
USE_PYTHON= autoplist cryptography noflavors distutils
CONFLICTS_INSTALL= py*-asciinema # bin/asciinema

View File

@ -14,8 +14,8 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}dbus>=0.84.0:devel/py-dbus@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}jeepney>=0.6:devel/py-jeepney@${PY_FLAVOR}
USES= python pycryptography:run
USE_PYTHON= autoplist distutils
USES= python
USE_PYTHON= autoplist cryptography distutils
NO_ARCH= yes

View File

@ -18,8 +18,8 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}josepy>=1.13.0:security/py-josepy@${PY_FLAVO
${PYTHON_PKGNAMEPREFIX}pytz>=2019.3,1:devel/py-pytz@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}requests>=2.20.0:www/py-requests@${PY_FLAVOR}
USES= python pycryptography:run
USE_PYTHON= autoplist distutils pytest
USES= python
USE_PYTHON= autoplist cryptography distutils pytest
NO_ARCH= yes

View File

@ -13,8 +13,8 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}typing-extensions>=3.6:devel/py-typing-extensions@${PY_FLAVOR}
USES= cpe pycryptography:run python
USE_PYTHON= autoplist concurrent distutils unittest
USES= cpe python
USE_PYTHON= autoplist concurrent cryptography distutils unittest
NO_ARCH= yes

View File

@ -13,8 +13,8 @@ WWW= https://authlib.org/ \
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= pycryptography:run python
USE_PYTHON= autoplist concurrent distutils
USES= python
USE_PYTHON= autoplist concurrent cryptography distutils
NO_ARCH= yes

View File

@ -16,8 +16,8 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}azure-common>=1.1<2:www/py-azure-common@${PY
${PYTHON_PKGNAMEPREFIX}isodate>=0.6.1:devel/py-isodate@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}typing-extensions>=4.0.1:devel/py-typing-extensions@${PY_FLAVOR}
USES= pycryptography:run python zip
USE_PYTHON= autoplist concurrent distutils
USES= python zip
USE_PYTHON= autoplist concurrent cryptography distutils
NO_ARCH= yes

View File

@ -14,8 +14,8 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}gmpy2>0:math/py-gmpy2@${PY_FLAVOR}
USES= python pycryptography:run
USE_PYTHON= autoplist distutils
USES= python
USE_PYTHON= autoplist cryptography distutils
NO_ARCH= yes

View File

@ -16,8 +16,8 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}idna>=2.0.0:dns/py-idna@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}openssl>=0.14:security/py-openssl@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}requests>=0:www/py-requests@${PY_FLAVOR}
USES= pycryptography:run python
USE_PYTHON= autoplist concurrent distutils
USES= python
USE_PYTHON= autoplist concurrent cryptography distutils
NO_ARCH= yes

View File

@ -21,8 +21,8 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}acme>=${ACME_VERSION},1:security/py-acme@${P
${PYTHON_PKGNAMEPREFIX}pyrfc3339>=0:devel/py-pyrfc3339@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pytz>=2019.3,1:devel/py-pytz@${PY_FLAVOR}
USES= python pycryptography:run
USE_PYTHON= autoplist concurrent distutils pytest
USES= python
USE_PYTHON= autoplist concurrent cryptography distutils pytest
NO_ARCH= yes

View File

@ -41,9 +41,9 @@ RUN_DEPENDS= libbde>=a:devel/libbde \
${PYTHON_PKGNAMEPREFIX}xattr>=0:devel/py-xattr@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}yaml>=3.10:devel/py-yaml@${PY_FLAVOR}
USES= python pycryptography:run
USES= python
USE_LOCALE= en_US.UTF-8
USE_PYTHON= distutils autoplist concurrent
USE_PYTHON= autoplist concurrent cryptography distutils
DO_MAKE_TEST= ${SETENV} ${TEST_ENV} ${PYTHON_CMD}
TEST_TARGET= run_tests.py

View File

@ -16,8 +16,8 @@ BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}poetry-core>=1.0.0:devel/py-poetry-core@${
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}six>=0:devel/py-six@${PY_FLAVOR}
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mock>0:devel/py-mock@${PY_FLAVOR}
USES= pycryptography:run python
USE_PYTHON= autoplist pep517 unittest
USES= python
USE_PYTHON= autoplist cryptography pep517 unittest
NO_ARCH= yes

View File

@ -18,8 +18,8 @@ TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}coverage>=4.0:devel/py-coverage@${PY_FLAVOR
${PYTHON_PKGNAMEPREFIX}pytest-cov>=0:devel/py-pytest-cov@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pytest-flake8>=0.5:devel/py-pytest-flake8@${PY_FLAVOR}
USES= python pycryptography:run
USE_PYTHON= autoplist concurrent distutils pytest
USES= python
USE_PYTHON= autoplist concurrent cryptography distutils pytest
NO_ARCH= yes

View File

@ -12,8 +12,8 @@ LICENSE= MIT
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}olefile>=0.45:devel/py-olefile@${PY_FLAVOR}
USES= python pycryptography:run
USE_PYTHON= concurrent distutils autoplist
USES= python
USE_PYTHON= autoplist concurrent cryptography distutils
NO_ARCH= yes

View File

@ -10,8 +10,8 @@ WWW= https://pypi.org/project/noiseprotocol/
LICENSE= MIT
USES= python pycryptography:run
USE_PYTHON= autoplist distutils
USES= python
USE_PYTHON= autoplist cryptography distutils
NO_ARCH= yes

View File

@ -24,9 +24,9 @@ RSA_DESC= RSA support
SIGNALS_DESC= Signal support
SIGNEDTOKEN_DESC= Signed token support
RSA_USES= pycryptography:run
RSA_USE= PYTHON=cryptography
SIGNALS_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}blinker>=1.4.0:devel/py-blinker@${PY_FLAVOR}
SIGNEDTOKEN_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pyjwt>=2.0.0<3:www/py-pyjwt@${PY_FLAVOR}
SIGNEDTOKEN_USES= pycryptography:run
SIGNEDTOKEN_USE= PYTHON=cryptography
.include <bsd.port.mk>

View File

@ -17,8 +17,8 @@ TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}flaky>0:devel/py-flaky@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pretend>0:devel/py-pretend@${PY_FLAVOR} \
${LOCALBASE}/share/certs/ca-root-nss.crt:security/ca_root_nss
USES= cpe python pycryptography:run
USE_PYTHON= autoplist concurrent distutils pytest pythonprefix
USES= cpe python
USE_PYTHON= autoplist concurrent cryptography distutils pytest pythonprefix
NO_ARCH= yes

View File

@ -20,8 +20,8 @@ TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}invoke>=0:devel/py-invoke@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}mock>=0:devel/py-mock@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pytest-relaxed>=0:devel/py-pytest-relaxed@${PY_FLAVOR}
USES= cpe pytest:4 python pycryptography:run
USE_PYTHON= autoplist distutils
USES= cpe pytest:4 python
USE_PYTHON= autoplist cryptography distutils
NO_ARCH= yes
OPTIONS_DEFINE= GSSAPI

View File

@ -15,8 +15,8 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pyasn1>=0:devel/py-pyasn1@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}six>=1.9.0:devel/py-six@${PY_FLAVOR}
USES= python pycryptography:run
USE_PYTHON= autoplist concurrent distutils
USES= python
USE_PYTHON= autoplist concurrent cryptography distutils
NO_ARCH= yes

View File

@ -52,9 +52,9 @@ RUN_DEPENDS= libesedb>=e:devel/libesedb \
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}fakeredis>=0:databases/py-fakeredis@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}mock>=0:devel/py-mock@${PY_FLAVOR}
USES= python pycryptography:run
USES= python
USE_LOCALE= en_US.UTF-8
USE_PYTHON= distutils autoplist concurrent
USE_PYTHON= autoplist concurrent cryptography distutils
# Upstream archive contains files with UTF-8 names
EXTRACT_CMD= ${SETENV} LANG=${USE_LOCALE} LC_ALL=${USE_LOCALE} ${TAR}
DO_MAKE_TEST= ${SETENV} ${TEST_ENV} ${PYTHON_CMD}

View File

@ -18,8 +18,8 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}asn1crypto>=1.5.1:devel/py-asn1crypto@${PY_F
${PYTHON_PKGNAMEPREFIX}requests>=2.24.0:www/py-requests@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}uritools>=3.0.1:net/py-uritools@${PY_FLAVOR}
USES= pycryptography:run python
USE_PYTHON= autoplist concurrent pep517
USES= python
USE_PYTHON= autoplist concurrent cryptography pep517
NO_ARCH= yes

View File

@ -23,8 +23,8 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}asn1crypto>=1.5.1:devel/py-asn1crypto@${PY_F
${PYTHON_PKGNAMEPREFIX}requests>=2.24.0:www/py-requests@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}tzlocal>=4.2:devel/py-tzlocal@${PY_FLAVOR}
USES= pycryptography:run python
USE_PYTHON= autoplist concurrent pep517
USES= python
USE_PYTHON= autoplist concurrent cryptography pep517
NO_ARCH= yes

View File

@ -23,8 +23,8 @@ TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mock>=0:devel/py-mock@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pytest>=0:devel/py-pytest@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}responses>=0:devel/py-responses@${PY_FLAVOR}
USES= cpe pycryptography:run python:3.9+ shebangfix
USE_PYTHON= autoplist concurrent pep517
USES= cpe python:3.9+ shebangfix
USE_PYTHON= autoplist concurrent cryptography pep517
NO_ARCH= yes

View File

@ -27,8 +27,8 @@ TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mock>=0:devel/py-mock@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pytest>=0:devel/py-pytest@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}responses>=0:devel/py-responses@${PY_FLAVOR}
USES= cpe pycryptography:run python
USE_PYTHON= autoplist concurrent distutils
USES= cpe python
USE_PYTHON= autoplist concurrent cryptography distutils
NO_ARCH= yes

View File

@ -28,8 +28,8 @@ TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mock>=0:devel/py-mock@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pytest>=0:devel/py-pytest@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}responses>=0:devel/py-responses@${PY_FLAVOR}
USES= cpe pycryptography:run python
USE_PYTHON= autoplist concurrent distutils
USES= cpe python
USE_PYTHON= autoplist concurrent cryptography distutils
NO_ARCH= yes

View File

@ -14,8 +14,8 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=61.0.0:devel/py-setuptools@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
USES= pycryptography:run python
USE_PYTHON= autoplist concurrent pep517
USES= python
USE_PYTHON= autoplist concurrent cryptography pep517
NO_ARCH= yes

View File

@ -13,8 +13,8 @@ LICENSE= GPLv3
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}python-axolotl-curve25519>=0:security/py-python-axolotl-curve25519@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}protobuf>=3.0:devel/py-protobuf@${PY_FLAVOR}
USES= python pycryptography:run
USE_PYTHON= autoplist distutils
USES= python
USE_PYTHON= autoplist cryptography distutils
NO_ARCH= yes

View File

@ -17,8 +17,8 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}openssl>=16.0.0:security/py-openssl@${PY_FLA
${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pyspnego>0:security/py-pyspnego@${PY_FLAVOR}
USES= python pycryptography:run
USE_PYTHON= autoplist distutils
USES= python
USE_PYTHON= autoplist cryptography distutils
NO_ARCH= yes

View File

@ -15,8 +15,8 @@ BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hatchling>0:devel/py-hatchling@${PY_FLAVOR
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pynacl>1.2.0:security/py-pynacl@${PY_FLAVOR}
TEST_DEPENDS= ${LOCALBASE}/bin/gpg:security/gnupg
USES= python pycryptography:run pytest shebangfix
USE_PYTHON= autoplist pep517
USES= python pytest shebangfix
USE_PYTHON= autoplist cryptography pep517
PYTEST_ARGS= tests
SHEBANG_FILES= securesystemslib/settings.py \

View File

@ -20,8 +20,8 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}attrs>=19.1.0:devel/py-attrs@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pyasn1>=0:devel/py-pyasn1@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pyasn1-modules>=0:devel/py-pyasn1-modules@${PY_FLAVOR}
USES= pycryptography:run python
USE_PYTHON= autoplist concurrent pep517
USES= python
USE_PYTHON= autoplist concurrent cryptography pep517
NO_ARCH= yes

View File

@ -15,8 +15,8 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}attrs>=16.0.0:devel/py-attrs@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pyasn1-modules>=0:devel/py-pyasn1-modules@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pyasn1>=0:devel/py-pyasn1@${PY_FLAVOR}
USES= python pycryptography:run
USE_PYTHON= autoplist distutils
USES= python
USE_PYTHON= autoplist cryptography distutils
NO_ARCH= yes

View File

@ -21,8 +21,8 @@ TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}httpretty>=0.9.6:www/py-httpretty@${PY_FLAV
${PYTHON_PKGNAMEPREFIX}coverage>=3.6:devel/py-coverage@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pytest-cov>=2.7.1:devel/py-pytest-cov@${PY_FLAVOR}
USES= python pycryptography:run
USE_PYTHON= autoplist distutils pytest
USES= python
USE_PYTHON= autoplist cryptography distutils pytest
TEST_ENV= PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}

View File

@ -13,8 +13,8 @@ LICENSE= BSD3CLAUSE
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}ecdsa>=0.13:security/py-ecdsa@${PY_FLAVOR}
USES= pycryptography:run python
USE_PYTHON= autoplist concurrent distutils
USES= python
USE_PYTHON= autoplist concurrent cryptography distutils
NO_ARCH= yes

View File

@ -16,8 +16,8 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}nassl>=5<6:security/py-nassl@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}openssl>=23,1<24,1:security/py-openssl@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}tls-parser>=2<3:security/py-tls-parser@${PY_FLAVOR}
USES= pycryptography:run python
USE_PYTHON= autoplist concurrent distutils
USES= python
USE_PYTHON= autoplist concurrent cryptography distutils
NO_ARCH= yes

View File

@ -15,8 +15,8 @@ TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mock>0:devel/py-mock@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pyflakes>0:devel/py-pyflakes@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pycodestyle>0:devel/py-pycodestyle@${PY_FLAVOR}
USES= python pycryptography:run
USE_PYTHON= distutils autoplist concurrent
USES= python
USE_PYTHON= autoplist concurrent cryptography distutils
NO_ARCH= yes
do-test:

View File

@ -18,8 +18,8 @@ TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest-cov>=0:devel/py-pytest-cov@${PY_FLAV
${PYTHON_PKGNAMEPREFIX}openssl>=0:security/py-openssl@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}service_identity>=0:security/py-service_identity@${PY_FLAVOR}
USES= python pycryptography:run
USE_PYTHON= autoplist distutils pytest
USES= python
USE_PYTHON= autoplist cryptography distutils pytest
NO_ARCH= yes
.include <bsd.port.mk>

View File

@ -16,8 +16,8 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}Automat>0:devel/py-Automat@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}twisted>=15.5.0:devel/py-twisted@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}zope.interface>=3.6.1:devel/py-zope.interface@${PY_FLAVOR}
USES= python pycryptography:run shebangfix
USE_PYTHON= distutils autoplist pytest # 1 test fails, see https://github.com/meejah/txtorcon/issues/376
USES= python shebangfix
USE_PYTHON= autoplist cryptography distutils pytest # 1 test fails, see https://github.com/meejah/txtorcon/issues/376
SHEBANG_FILES= examples/*.py

View File

@ -17,8 +17,8 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}asn1crypto>=0.24.0:devel/py-asn1crypto@${PY_
${PYTHON_PKGNAMEPREFIX}cbor2>=4.0.1:devel/py-cbor2@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}openssl>=20.0.1,1:security/py-openssl@${PY_FLAVOR}
USES= pycryptography:run python
USE_PYTHON= autoplist concurrent distutils unittest
USES= python
USE_PYTHON= autoplist concurrent cryptography distutils unittest
NO_ARCH= yes

View File

@ -27,8 +27,8 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}click>0:devel/py-click@${PY_FLAVOR} \
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}makefun>0:devel/py-makefun@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR}
USES= dos2unix pycryptography python
USE_PYTHON= autoplist concurrent pep517 unittest
USES= dos2unix python
USE_PYTHON= autoplist concurrent cryptography cryptography_build pep517 unittest
DOS2UNIX_GLOB= *.adoc *.py

View File

@ -25,7 +25,8 @@ RUN_DEPENDS= datadog-agent>=7.24.1:sysutils/datadog-agent \
${PYTHON_PKGNAMEPREFIX}uptime>0:sysutils/py-uptime@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}typing-extensions>0:devel/py-typing-extensions@${PY_FLAVOR}
USES= python pycryptography:run
USES= python
USE_PYTHON= cryptography
USE_GITHUB= yes
GH_ACCOUNT= DataDog
GH_PROJECT= integrations-core

View File

@ -30,10 +30,10 @@ TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}bcrypt>=0:security/py-bcrypt@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}requests>0:www/py-requests@${PY_FLAVOR} \
git:devel/git
USES= ansible:env cpe python:3.9+ pycryptography:run shebangfix
USES= ansible:env cpe python:3.9+ shebangfix
CPE_VENDOR= redhat
CPE_PRODUCT= ansible
USE_PYTHON= autoplist concurrent pep517
USE_PYTHON= autoplist concurrent cryptography pep517
SHEBANG_REGEX= [.]/test/.*[.]py

View File

@ -30,8 +30,8 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}argcomplete>=2.0:devel/py-argcomplete@${PY_F
${PYTHON_PKGNAMEPREFIX}msrestazure>=0.6.4:net-mgmt/py-msrestazure@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}packaging>=20.9:devel/py-packaging@${PY_FLAVOR}
USES= azurepy python pycryptography:run
USE_PYTHON= autoplist concurrent distutils
USES= azurepy python
USE_PYTHON= autoplist concurrent cryptography distutils
NO_ARCH= yes

View File

@ -114,8 +114,8 @@ RUN_DEPENDS= bash:shells/bash \
${PYTHON_PKGNAMEPREFIX}semver>=2.13.0:devel/py-semver@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pygithub>=1.55:devel/py-pygithub@${PY_FLAVOR}
USES= azurepy python pycryptography:run
USE_PYTHON= autoplist concurrent distutils
USES= azurepy python
USE_PYTHON= autoplist concurrent cryptography distutils
NO_ARCH= yes

View File

@ -13,8 +13,8 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}chardet>=0:textproc/py-chardet@${PY_FLAVOR}
USES= python pycryptography:run
USE_PYTHON= distutils concurrent autoplist
USES= python
USE_PYTHON= autoplist concurrent cryptography distutils
CONFLICTS_INSTALL= py??-pdfminer py??-pdfminer3k
NO_ARCH= yes

View File

@ -16,8 +16,8 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}beautifulsoup>=4.4.1:www/py-beautifulsoup@${
${PYTHON_PKGNAMEPREFIX}sqlite3>=0:databases/py-sqlite3@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}urllib3>=1.23,1:net/py-urllib3@${PY_FLAVOR}
USES= pycryptography:run python
USE_PYTHON= autoplist distutils noflavors
USES= python
USE_PYTHON= autoplist cryptography distutils noflavors
NO_ARCH= yes

View File

@ -47,9 +47,9 @@ TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hypothesis>0:devel/py-hypothesis@${PY_FLAVO
${PYTHON_PKGNAMEPREFIX}pytest-xdist>0:devel/py-pytest-xdist@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR}
USES= cpe python pycryptography:run
USES= cpe python
USE_GITHUB= yes
USE_PYTHON= autoplist distutils noflavors
USE_PYTHON= autoplist cryptography distutils noflavors
NO_ARCH= yes

View File

@ -14,12 +14,12 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hyperlink>=21.0.0:www/py-hyperlink@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}txaio>=21.2.1:devel/py-txaio@${PY_FLAVOR}
USES= cpe python pycryptography:run
USES= cpe python
CPE_VENDOR= crossbar
USE_GITHUB= yes
GH_ACCOUNT= crossbario
GH_PROJECT= autobahn-python
USE_PYTHON= autoplist distutils pytest
USE_PYTHON= autoplist cryptography distutils pytest
OPTIONS_DEFINE= ACCELERATE COMPRESS ENCRYPTION SCRAM SERIALIZATION
OPTIONS_DEFAULT= ACCELERATE ASYNCIO ENCRYPTION SCRAM SERIALIZATION \

View File

@ -14,8 +14,8 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}azure-common>0:www/py-azure-common@${PY_FLAV
${PYTHON_PKGNAMEPREFIX}dateutil>0:devel/py-dateutil@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}requests>0:www/py-requests@${PY_FLAVOR}
USES= python pycryptography:run
USE_PYTHON= autoplist concurrent distutils
USES= python
USE_PYTHON= autoplist concurrent cryptography distutils
NO_ARCH= yes

View File

@ -19,8 +19,8 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}Flask>=0:www/py-flask@${PY_FLAVOR} \
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}coverage>=0:devel/py-coverage@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}dateutil>=0:devel/py-dateutil@${PY_FLAVOR}
USES= python pycryptography:test
USE_PYTHON= autoplist concurrent distutils pytest
USES= python
USE_PYTHON= autoplist concurrent cryptography_test distutils pytest
TEST_ENV= PYTHONPATH=${WRKSRC}/src

View File

@ -28,6 +28,6 @@ CPE_VENDOR= pyjwt_project
OPTIONS_DEFINE= CRYPTO
OPTIONS_DEFAULT=CRYPTO
CRYPTO_USES= pycryptography:run
CRYPTO_USE= PYTHON=cryptography
.include <bsd.port.mk>

View File

@ -18,15 +18,14 @@ TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pycryptodome>=0:security/py-pycryptodome@${PY_FLAVOR}
USES= python
USE_PYTHON= distutils concurrent autoplist
USE_PYTHON= autoplist concurrent cryptography_test distutils
CONFLICTS_INSTALL= ${PYTHON_PKGNAMEPREFIX}-pyjwt
OPTIONS_DEFINE= RSASSA
RSASSA_DESC= RSASSA-PKCS1 v1.5 signature support
RSASSA_USES= pycryptography:run,test
RSASSA_USES_OFF= pycryptography:test
RSASSA_USE= PYTHON=cryptography
NO_ARCH= yes

View File

@ -14,8 +14,8 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}ntlm-auth>=1.0.2:security/py-ntlm-auth@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}requests>=2.0.0:www/py-requests@${PY_FLAVOR}
USES= python pycryptography:run
USE_PYTHON= distutils autoplist
USES= python
USE_PYTHON= autoplist cryptography distutils
NO_ARCH= yes
.include <bsd.port.mk>

View File

@ -24,8 +24,8 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cssselect>=0.9.1:www/py-cssselect@${PY_FLAVO
${PYTHON_PKGNAMEPREFIX}lxml>=3.5.0:devel/py-lxml@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pydispatcher>=2.0.5:devel/py-pydispatcher@${PY_FLAVOR}
USES= cpe python pycryptography:run
USE_PYTHON= distutils concurrent autoplist
USES= cpe python
USE_PYTHON= autoplist concurrent cryptography distutils
NO_ARCH= yes

View File

@ -33,10 +33,10 @@ RUN_DEPENDS= ${PY_PILLOW} \
Xvfb:x11-servers/xorg-server@xvfb
USES= desktop-file-utils gettext-runtime gnome localbase pkgconfig \
python pycryptography:run shared-mime-info shebangfix tar:xz xorg
python shared-mime-info shebangfix tar:xz xorg
USE_GNOME= cairo gdkpixbuf2 gtk30 pygobject3
USE_PYTHON= cython distutils noflavors
USE_PYTHON= cryptography cython distutils noflavors
USE_XORG= x11 xcomposite xdamage xext xfixes xi xkbfile xrandr xres xtst
PLIST_SUB+= PORTVERSION=${PORTVERSION} \
PYTHON_SUFFIX=${PYTHON_SUFFIX} \