aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPo-Chuan Hsieh <sunpoet@FreeBSD.org>2023-09-29 14:19:56 +0000
committerPo-Chuan Hsieh <sunpoet@FreeBSD.org>2023-09-29 14:19:56 +0000
commit3754fc5f190b9a31f617d662bb35fd0f96ee8088 (patch)
tree3896798f9cfeb2241f037b4ae5874dd2f85b784e
parent2a4bb83e076d875d1b4e91208ca8d3babfb6d522 (diff)
downloadports-3754fc5f190b9a31f617d662bb35fd0f96ee8088.tar.gz
ports-3754fc5f190b9a31f617d662bb35fd0f96ee8088.zip
*: 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
-rw-r--r--Mk/Uses/pycryptography.mk46
-rw-r--r--Mk/Uses/python.mk30
-rw-r--r--cad/uranium/Makefile3
-rw-r--r--comms/py-esptool/Makefile4
-rw-r--r--databases/py-mycli/Makefile4
-rw-r--r--databases/py-ormar/Makefile2
-rw-r--r--databases/py-sqlalchemy-utils/Makefile2
-rw-r--r--devel/oci-cli/Makefile4
-rw-r--r--devel/osc/Makefile4
-rw-r--r--devel/py-adb/Makefile4
-rw-r--r--devel/py-aiortc/Makefile4
-rw-r--r--devel/py-azure-identity/Makefile4
-rw-r--r--devel/py-azure-keyvault/Makefile4
-rw-r--r--devel/py-azure-multiapi-storage/Makefile4
-rw-r--r--devel/py-azure-storage-common/Makefile4
-rw-r--r--devel/py-castellan/Makefile4
-rw-r--r--devel/py-cursive/Makefile4
-rw-r--r--devel/py-moto/Makefile4
-rw-r--r--devel/py-msal/Makefile4
-rw-r--r--devel/py-oci/Makefile4
-rw-r--r--devel/py-openstacksdk/Makefile4
-rw-r--r--devel/py-pip/Makefile4
-rw-r--r--devel/py-twisted/Makefile2
-rw-r--r--dns/letsdns/Makefile4
-rw-r--r--dns/py-dns-crawler/Makefile4
-rw-r--r--dns/py-dns-lexicon/Makefile4
-rw-r--r--dns/py-dnspython/Makefile2
-rw-r--r--finance/electrum/Makefile4
-rw-r--r--finance/py-ccxt/Makefile4
-rw-r--r--mail/py-flanker/Makefile4
-rw-r--r--misc/py-apache-beam/Makefile4
-rw-r--r--misc/py-cinder/Makefile4
-rw-r--r--net-im/py-matrix-synapse/Makefile4
-rw-r--r--net-mgmt/py-adal/Makefile4
-rw-r--r--net-p2p/reticulum/Makefile4
-rw-r--r--net/onionprobe/Makefile4
-rw-r--r--net/py-cepa/Makefile4
-rw-r--r--net/py-magic-wormhole/Makefile4
-rw-r--r--net/py-ripe.atlas.sagan/Makefile4
-rw-r--r--net/py-smbprotocol/Makefile4
-rw-r--r--net/py-transip/Makefile4
-rw-r--r--net/py-urllib3/Makefile5
-rw-r--r--net/scapy/Makefile4
-rw-r--r--news/sabnzbd/Makefile2
-rw-r--r--security/caldera/Makefile3
-rw-r--r--security/cowrie/Makefile4
-rw-r--r--security/py-SecretStorage/Makefile4
-rw-r--r--security/py-acme/Makefile4
-rw-r--r--security/py-asyncssh/Makefile4
-rw-r--r--security/py-authlib/Makefile4
-rw-r--r--security/py-azure-keyvault-keys/Makefile4
-rw-r--r--security/py-badkeys/Makefile4
-rw-r--r--security/py-cert-human/Makefile4
-rw-r--r--security/py-certbot/Makefile4
-rw-r--r--security/py-dfvfs/Makefile4
-rw-r--r--security/py-fido2/Makefile4
-rw-r--r--security/py-josepy/Makefile4
-rw-r--r--security/py-msoffcrypto-tool/Makefile4
-rw-r--r--security/py-noiseprotocol/Makefile4
-rw-r--r--security/py-oauthlib/Makefile4
-rw-r--r--security/py-openssl/Makefile4
-rw-r--r--security/py-paramiko/Makefile4
-rw-r--r--security/py-pgpy/Makefile4
-rw-r--r--security/py-plaso/Makefile4
-rw-r--r--security/py-pyhanko-certvalidator/Makefile4
-rw-r--r--security/py-pyhanko/Makefile4
-rw-r--r--security/py-pysaml2/Makefile4
-rw-r--r--security/py-pysaml24/Makefile4
-rw-r--r--security/py-pysaml26/Makefile4
-rw-r--r--security/py-pyspnego/Makefile4
-rw-r--r--security/py-python-axolotl/Makefile4
-rw-r--r--security/py-requests-credssp/Makefile4
-rw-r--r--security/py-securesystemslib/Makefile4
-rw-r--r--security/py-service-identity/Makefile4
-rw-r--r--security/py-service_identity/Makefile4
-rw-r--r--security/py-social-auth-core/Makefile4
-rw-r--r--security/py-sshpubkeys/Makefile4
-rw-r--r--security/py-sslyze/Makefile4
-rw-r--r--security/py-stem/Makefile4
-rw-r--r--security/py-trustme/Makefile4
-rw-r--r--security/py-txtorcon/Makefile4
-rw-r--r--security/py-webauthn/Makefile4
-rw-r--r--security/py-yubikey-manager/Makefile4
-rw-r--r--sysutils/datadog-integrations/Makefile3
-rw-r--r--sysutils/py-ansible-core/Makefile4
-rw-r--r--sysutils/py-azure-cli-core/Makefile4
-rw-r--r--sysutils/py-azure-cli/Makefile4
-rw-r--r--textproc/py-pdfminer.six/Makefile4
-rw-r--r--www/buku/Makefile4
-rw-r--r--www/mitmproxy/Makefile4
-rw-r--r--www/py-autobahn/Makefile4
-rw-r--r--www/py-azure-storage/Makefile4
-rw-r--r--www/py-flask-jwt-extended/Makefile4
-rw-r--r--www/py-pyjwt/Makefile2
-rw-r--r--www/py-pyjwt1/Makefile5
-rw-r--r--www/py-requests_ntlm/Makefile4
-rw-r--r--www/py-scrapy/Makefile4
-rw-r--r--x11/xpra/Makefile4
98 files changed, 216 insertions, 231 deletions
diff --git a/Mk/Uses/pycryptography.mk b/Mk/Uses/pycryptography.mk
deleted file mode 100644
index a7687b40a4cd..000000000000
--- a/Mk/Uses/pycryptography.mk
+++ /dev/null
@@ -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
diff --git a/Mk/Uses/python.mk b/Mk/Uses/python.mk
index 57254be9b048..b65b2150f214 100644
--- a/Mk/Uses/python.mk
+++ b/Mk/Uses/python.mk
@@ -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}
diff --git a/cad/uranium/Makefile b/cad/uranium/Makefile
index 9be37567b1e4..3c969b96f6ce 100644
--- a/cad/uranium/Makefile
+++ b/cad/uranium/Makefile
@@ -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=
diff --git a/comms/py-esptool/Makefile b/comms/py-esptool/Makefile
index 733b7c393c0a..a67d81e16cf1 100644
--- a/comms/py-esptool/Makefile
+++ b/comms/py-esptool/Makefile
@@ -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
diff --git a/databases/py-mycli/Makefile b/databases/py-mycli/Makefile
index 71e4bed2c33e..8aaeba14f112 100644
--- a/databases/py-mycli/Makefile
+++ b/databases/py-mycli/Makefile
@@ -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
diff --git a/databases/py-ormar/Makefile b/databases/py-ormar/Makefile
index 265a05690c7b..d6d6972d416d 100644
--- a/databases/py-ormar/Makefile
+++ b/databases/py-ormar/Makefile
@@ -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
diff --git a/databases/py-sqlalchemy-utils/Makefile b/databases/py-sqlalchemy-utils/Makefile
index 29effda0b6d2..858758db549d 100644
--- a/databases/py-sqlalchemy-utils/Makefile
+++ b/databases/py-sqlalchemy-utils/Makefile
@@ -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}
diff --git a/devel/oci-cli/Makefile b/devel/oci-cli/Makefile
index 9faa03107d27..90feac4d8405 100644
--- a/devel/oci-cli/Makefile
+++ b/devel/oci-cli/Makefile
@@ -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
diff --git a/devel/osc/Makefile b/devel/osc/Makefile
index ffbdfa7cdfe8..b2c9480450b7 100644
--- a/devel/osc/Makefile
+++ b/devel/osc/Makefile
@@ -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
diff --git a/devel/py-adb/Makefile b/devel/py-adb/Makefile
index b317508d25f5..c4babceef037 100644
--- a/devel/py-adb/Makefile
+++ b/devel/py-adb/Makefile
@@ -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
diff --git a/devel/py-aiortc/Makefile b/devel/py-aiortc/Makefile
index 67b993ce33de..d13ab26736a8 100644
--- a/devel/py-aiortc/Makefile
+++ b/devel/py-aiortc/Makefile
@@ -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
diff --git a/devel/py-azure-identity/Makefile b/devel/py-azure-identity/Makefile
index 49dfcaef4a88..b1f463d77e6c 100644
--- a/devel/py-azure-identity/Makefile
+++ b/devel/py-azure-identity/Makefile
@@ -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
diff --git a/devel/py-azure-keyvault/Makefile b/devel/py-azure-keyvault/Makefile
index 23f2baccd4db..498d5947cd58 100644
--- a/devel/py-azure-keyvault/Makefile
+++ b/devel/py-azure-keyvault/Makefile
@@ -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
diff --git a/devel/py-azure-multiapi-storage/Makefile b/devel/py-azure-multiapi-storage/Makefile
index 697bdb3c9d19..8c1558804a87 100644
--- a/devel/py-azure-multiapi-storage/Makefile
+++ b/devel/py-azure-multiapi-storage/Makefile
@@ -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
diff --git a/devel/py-azure-storage-common/Makefile b/devel/py-azure-storage-common/Makefile
index d58d629261ee..82251a209dc9 100644
--- a/devel/py-azure-storage-common/Makefile
+++ b/devel/py-azure-storage-common/Makefile
@@ -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
diff --git a/devel/py-castellan/Makefile b/devel/py-castellan/Makefile
index 2e13dd9ecb3c..e2fa96fb3be4 100644
--- a/devel/py-castellan/Makefile
+++ b/devel/py-castellan/Makefile
@@ -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
diff --git a/devel/py-cursive/Makefile b/devel/py-cursive/Makefile
index 4faedb84a5bb..d7fb2f523f61 100644
--- a/devel/py-cursive/Makefile
+++ b/devel/py-cursive/Makefile
@@ -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
diff --git a/devel/py-moto/Makefile b/devel/py-moto/Makefile
index f58245b8efce..2805c7fcb9fc 100644
--- a/devel/py-moto/Makefile
+++ b/devel/py-moto/Makefile
@@ -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
diff --git a/devel/py-msal/Makefile b/devel/py-msal/Makefile
index d4788638a841..f0c694766e5d 100644
--- a/devel/py-msal/Makefile
+++ b/devel/py-msal/Makefile
@@ -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
diff --git a/devel/py-oci/Makefile b/devel/py-oci/Makefile
index 084859c71cfc..0f150703f5d0 100644
--- a/devel/py-oci/Makefile
+++ b/devel/py-oci/Makefile
@@ -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
diff --git a/devel/py-openstacksdk/Makefile b/devel/py-openstacksdk/Makefile
index 34286bc6518d..5dd87213c597 100644
--- a/devel/py-openstacksdk/Makefile
+++ b/devel/py-openstacksdk/Makefile
@@ -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
diff --git a/devel/py-pip/Makefile b/devel/py-pip/Makefile
index 7932bb50d942..157c6f667f58 100644
--- a/devel/py-pip/Makefile
+++ b/devel/py-pip/Makefile
@@ -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
diff --git a/devel/py-twisted/Makefile b/devel/py-twisted/Makefile
index df1d19a8aa72..201d05d62ca0 100644
--- a/devel/py-twisted/Makefile
+++ b/devel/py-twisted/Makefile
@@ -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} \
diff --git a/dns/letsdns/Makefile b/dns/letsdns/Makefile
index a47361730442..1976a39bb224 100644
--- a/dns/letsdns/Makefile
+++ b/dns/letsdns/Makefile
@@ -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>
diff --git a/dns/py-dns-crawler/Makefile b/dns/py-dns-crawler/Makefile
index e9f846c9f2da..fb90714d7016 100644
--- a/dns/py-dns-crawler/Makefile
+++ b/dns/py-dns-crawler/Makefile
@@ -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
diff --git a/dns/py-dns-lexicon/Makefile b/dns/py-dns-lexicon/Makefile
index a8e3c3ac2c9e..085795827b60 100644
--- a/dns/py-dns-lexicon/Makefile
+++ b/dns/py-dns-lexicon/Makefile
@@ -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
diff --git a/dns/py-dnspython/Makefile b/dns/py-dnspython/Makefile
index 096756f0f0d0..3c1874b32fea 100644
--- a/dns/py-dnspython/Makefile
+++ b/dns/py-dnspython/Makefile
@@ -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}
diff --git a/finance/electrum/Makefile b/finance/electrum/Makefile
index c65807e9027b..8050cdc0a10b 100644
--- a/finance/electrum/Makefile
+++ b/finance/electrum/Makefile
@@ -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
diff --git a/finance/py-ccxt/Makefile b/finance/py-ccxt/Makefile
index 681c2ccffa52..b374ee987da5 100644
--- a/finance/py-ccxt/Makefile
+++ b/finance/py-ccxt/Makefile
@@ -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
diff --git a/mail/py-flanker/Makefile b/mail/py-flanker/Makefile
index 7a0b0a515fde..ea53af039187 100644
--- a/mail/py-flanker/Makefile
+++ b/mail/py-flanker/Makefile
@@ -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
diff --git a/misc/py-apache-beam/Makefile b/misc/py-apache-beam/Makefile
index f292eb6daab1..2e64d9476b51 100644
--- a/misc/py-apache-beam/Makefile
+++ b/misc/py-apache-beam/Makefile
@@ -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
diff --git a/misc/py-cinder/Makefile b/misc/py-cinder/Makefile
index 21501d925972..b2131032fd42 100644
--- a/misc/py-cinder/Makefile
+++ b/misc/py-cinder/Makefile
@@ -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
diff --git a/net-im/py-matrix-synapse/Makefile b/net-im/py-matrix-synapse/Makefile
index 1acde14ffab9..0eca94989444 100644
--- a/net-im/py-matrix-synapse/Makefile
+++ b/net-im/py-matrix-synapse/Makefile
@@ -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
diff --git a/net-mgmt/py-adal/Makefile b/net-mgmt/py-adal/Makefile
index 863e5c7ee1f5..8acad15ba7f7 100644
--- a/net-mgmt/py-adal/Makefile
+++ b/net-mgmt/py-adal/Makefile
@@ -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
diff --git a/net-p2p/reticulum/Makefile b/net-p2p/reticulum/Makefile
index 94a508b34777..fed2ae1da5b9 100644
--- a/net-p2p/reticulum/Makefile
+++ b/net-p2p/reticulum/Makefile
@@ -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
diff --git a/net/onionprobe/Makefile b/net/onionprobe/Makefile
index 7924cdd99348..6c064b8223d4 100644
--- a/net/onionprobe/Makefile
+++ b/net/onionprobe/Makefile
@@ -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
diff --git a/net/py-cepa/Makefile b/net/py-cepa/Makefile
index 34cfd1b8b776..0ba3bd2f4123 100644
--- a/net/py-cepa/Makefile
+++ b/net/py-cepa/Makefile
@@ -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
diff --git a/net/py-magic-wormhole/Makefile b/net/py-magic-wormhole/Makefile
index 59d93f5a8233..56a3830fbeb7 100644
--- a/net/py-magic-wormhole/Makefile
+++ b/net/py-magic-wormhole/Makefile
@@ -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
diff --git a/net/py-ripe.atlas.sagan/Makefile b/net/py-ripe.atlas.sagan/Makefile
index 456eb763acac..440aca508bb6 100644
--- a/net/py-ripe.atlas.sagan/Makefile
+++ b/net/py-ripe.atlas.sagan/Makefile
@@ -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>
diff --git a/net/py-smbprotocol/Makefile b/net/py-smbprotocol/Makefile
index 91875326c465..0c6142815273 100644
--- a/net/py-smbprotocol/Makefile
+++ b/net/py-smbprotocol/Makefile
@@ -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
diff --git a/net/py-transip/Makefile b/net/py-transip/Makefile
index df416e0d8cee..0097216ad9e0 100644
--- a/net/py-transip/Makefile
+++ b/net/py-transip/Makefile
@@ -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
diff --git a/net/py-urllib3/Makefile b/net/py-urllib3/Makefile
index e4cb36bc83c4..d9747e375e6c 100644
--- a/net/py-urllib3/Makefile
+++ b/net/py-urllib3/Makefile
@@ -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>
diff --git a/net/scapy/Makefile b/net/scapy/Makefile
index 90839a4b8b0e..6a6384989b5e 100644
--- a/net/scapy/Makefile
+++ b/net/scapy/Makefile
@@ -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
diff --git a/news/sabnzbd/Makefile b/news/sabnzbd/Makefile
index 1b7cbeb9e167..dc741d582ffd 100644
--- a/news/sabnzbd/Makefile
+++ b/news/sabnzbd/Makefile
@@ -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" \
diff --git a/security/caldera/Makefile b/security/caldera/Makefile
index ebeb0e5406f7..c95ebd13caef 100644
--- a/security/caldera/Makefile
+++ b/security/caldera/Makefile
@@ -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
diff --git a/security/cowrie/Makefile b/security/cowrie/Makefile
index b2999fcf3c47..98b772c8e646 100644
--- a/security/cowrie/Makefile
+++ b/security/cowrie/Makefile
@@ -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
diff --git a/security/py-SecretStorage/Makefile b/security/py-SecretStorage/Makefile
index f5207dd77520..89fdb5e69b55 100644
--- a/security/py-SecretStorage/Makefile
+++ b/security/py-SecretStorage/Makefile
@@ -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
diff --git a/security/py-acme/Makefile b/security/py-acme/Makefile
index 4e58946841df..32e5b2405c85 100644
--- a/security/py-acme/Makefile
+++ b/security/py-acme/Makefile
@@ -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
diff --git a/security/py-asyncssh/Makefile b/security/py-asyncssh/Makefile
index b7ed5541ee8b..ff1f2de3df73 100644
--- a/security/py-asyncssh/Makefile
+++ b/security/py-asyncssh/Makefile
@@ -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
diff --git a/security/py-authlib/Makefile b/security/py-authlib/Makefile
index 17b49394e301..a086c4cb20ab 100644
--- a/security/py-authlib/Makefile
+++ b/security/py-authlib/Makefile
@@ -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
diff --git a/security/py-azure-keyvault-keys/Makefile b/security/py-azure-keyvault-keys/Makefile
index a7fa08281cd9..04fdb2950852 100644
--- a/security/py-azure-keyvault-keys/Makefile
+++ b/security/py-azure-keyvault-keys/Makefile
@@ -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
diff --git a/security/py-badkeys/Makefile b/security/py-badkeys/Makefile
index 159729f4ebcc..7a22539de28b 100644
--- a/security/py-badkeys/Makefile
+++ b/security/py-badkeys/Makefile
@@ -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
diff --git a/security/py-cert-human/Makefile b/security/py-cert-human/Makefile
index 19f04e468f49..a6f9e87d3cc8 100644
--- a/security/py-cert-human/Makefile
+++ b/security/py-cert-human/Makefile
@@ -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
diff --git a/security/py-certbot/Makefile b/security/py-certbot/Makefile
index 16b901264745..6e5f4605dc84 100644
--- a/security/py-certbot/Makefile
+++ b/security/py-certbot/Makefile
@@ -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
diff --git a/security/py-dfvfs/Makefile b/security/py-dfvfs/Makefile
index ae3fb085efdb..2aa3a6e19e0c 100644
--- a/security/py-dfvfs/Makefile
+++ b/security/py-dfvfs/Makefile
@@ -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
diff --git a/security/py-fido2/Makefile b/security/py-fido2/Makefile
index 14a4f157f52c..46ef75d64cfa 100644
--- a/security/py-fido2/Makefile
+++ b/security/py-fido2/Makefile
@@ -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
diff --git a/security/py-josepy/Makefile b/security/py-josepy/Makefile
index 09edce09c505..4bb3e9453c2e 100644
--- a/security/py-josepy/Makefile
+++ b/security/py-josepy/Makefile
@@ -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
diff --git a/security/py-msoffcrypto-tool/Makefile b/security/py-msoffcrypto-tool/Makefile
index 5f0961303e5c..8ac00f24d269 100644
--- a/security/py-msoffcrypto-tool/Makefile
+++ b/security/py-msoffcrypto-tool/Makefile
@@ -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
diff --git a/security/py-noiseprotocol/Makefile b/security/py-noiseprotocol/Makefile
index 7652535f9f34..74d8d6071c32 100644
--- a/security/py-noiseprotocol/Makefile
+++ b/security/py-noiseprotocol/Makefile
@@ -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
diff --git a/security/py-oauthlib/Makefile b/security/py-oauthlib/Makefile
index e132e3abf688..63f9c72a771c 100644
--- a/security/py-oauthlib/Makefile
+++ b/security/py-oauthlib/Makefile
@@ -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>
diff --git a/security/py-openssl/Makefile b/security/py-openssl/Makefile
index 326efa8be5ab..d763a8a4ebfb 100644
--- a/security/py-openssl/Makefile
+++ b/security/py-openssl/Makefile
@@ -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
diff --git a/security/py-paramiko/Makefile b/security/py-paramiko/Makefile
index d50723de421e..bd3897ba2447 100644
--- a/security/py-paramiko/Makefile
+++ b/security/py-paramiko/Makefile
@@ -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
diff --git a/security/py-pgpy/Makefile b/security/py-pgpy/Makefile
index 05dc7059f343..4f7b1c366c25 100644
--- a/security/py-pgpy/Makefile
+++ b/security/py-pgpy/Makefile
@@ -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
diff --git a/security/py-plaso/Makefile b/security/py-plaso/Makefile
index 1dbfdebac506..fbdd276f2935 100644
--- a/security/py-plaso/Makefile
+++ b/security/py-plaso/Makefile
@@ -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}
diff --git a/security/py-pyhanko-certvalidator/Makefile b/security/py-pyhanko-certvalidator/Makefile
index d177c672cd12..67b18ab08be7 100644
--- a/security/py-pyhanko-certvalidator/Makefile
+++ b/security/py-pyhanko-certvalidator/Makefile
@@ -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
diff --git a/security/py-pyhanko/Makefile b/security/py-pyhanko/Makefile
index c55d5d91e396..c1b81e8f6cf5 100644
--- a/security/py-pyhanko/Makefile
+++ b/security/py-pyhanko/Makefile
@@ -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
diff --git a/security/py-pysaml2/Makefile b/security/py-pysaml2/Makefile
index 2aacb46b5a7d..d831fdf5bd21 100644
--- a/security/py-pysaml2/Makefile
+++ b/security/py-pysaml2/Makefile
@@ -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
diff --git a/security/py-pysaml24/Makefile b/security/py-pysaml24/Makefile
index c53c64d9d846..88d209884dba 100644
--- a/security/py-pysaml24/Makefile
+++ b/security/py-pysaml24/Makefile
@@ -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
diff --git a/security/py-pysaml26/Makefile b/security/py-pysaml26/Makefile
index bb5ef774bcf2..3cb467104d94 100644
--- a/security/py-pysaml26/Makefile
+++ b/security/py-pysaml26/Makefile
@@ -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
diff --git a/security/py-pyspnego/Makefile b/security/py-pyspnego/Makefile
index 92599b2e1f8d..59fffdd5ab5c 100644
--- a/security/py-pyspnego/Makefile
+++ b/security/py-pyspnego/Makefile
@@ -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
diff --git a/security/py-python-axolotl/Makefile b/security/py-python-axolotl/Makefile
index f4cfa2b184c9..28054d19a765 100644
--- a/security/py-python-axolotl/Makefile
+++ b/security/py-python-axolotl/Makefile
@@ -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
diff --git a/security/py-requests-credssp/Makefile b/security/py-requests-credssp/Makefile
index 64dc016faa75..24e9f524dcdd 100644
--- a/security/py-requests-credssp/Makefile
+++ b/security/py-requests-credssp/Makefile
@@ -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
diff --git a/security/py-securesystemslib/Makefile b/security/py-securesystemslib/Makefile
index 01c978ffec3c..5d3c6b5ab91c 100644
--- a/security/py-securesystemslib/Makefile
+++ b/security/py-securesystemslib/Makefile
@@ -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 \
diff --git a/security/py-service-identity/Makefile b/security/py-service-identity/Makefile
index 74ddd9ffebd1..4dc89519580a 100644
--- a/security/py-service-identity/Makefile
+++ b/security/py-service-identity/Makefile
@@ -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
diff --git a/security/py-service_identity/Makefile b/security/py-service_identity/Makefile
index fa44c36be546..0f28a38cff17 100644
--- a/security/py-service_identity/Makefile
+++ b/security/py-service_identity/Makefile
@@ -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
diff --git a/security/py-social-auth-core/Makefile b/security/py-social-auth-core/Makefile
index 131605229330..0c8881aa2535 100644
--- a/security/py-social-auth-core/Makefile
+++ b/security/py-social-auth-core/Makefile
@@ -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}
diff --git a/security/py-sshpubkeys/Makefile b/security/py-sshpubkeys/Makefile
index bd4f2d0eeed7..b921a4f6ce1e 100644
--- a/security/py-sshpubkeys/Makefile
+++ b/security/py-sshpubkeys/Makefile
@@ -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
diff --git a/security/py-sslyze/Makefile b/security/py-sslyze/Makefile
index a114a055a805..7b924e3cbde2 100644
--- a/security/py-sslyze/Makefile
+++ b/security/py-sslyze/Makefile
@@ -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
diff --git a/security/py-stem/Makefile b/security/py-stem/Makefile
index 94abc1fc56d1..d33fa013d4c3 100644
--- a/security/py-stem/Makefile
+++ b/security/py-stem/Makefile
@@ -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:
diff --git a/security/py-trustme/Makefile b/security/py-trustme/Makefile
index 62c612ea7363..eba4bfc8f22a 100644
--- a/security/py-trustme/Makefile
+++ b/security/py-trustme/Makefile
@@ -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>
diff --git a/security/py-txtorcon/Makefile b/security/py-txtorcon/Makefile
index 6496e1099f17..ff131acab30d 100644
--- a/security/py-txtorcon/Makefile
+++ b/security/py-txtorcon/Makefile
@@ -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
diff --git a/security/py-webauthn/Makefile b/security/py-webauthn/Makefile
index 16bfe720d47a..5c03442dcf41 100644
--- a/security/py-webauthn/Makefile
+++ b/security/py-webauthn/Makefile
@@ -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
diff --git a/security/py-yubikey-manager/Makefile b/security/py-yubikey-manager/Makefile
index ac57cb359916..cc9ba6ee1720 100644
--- a/security/py-yubikey-manager/Makefile
+++ b/security/py-yubikey-manager/Makefile
@@ -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
diff --git a/sysutils/datadog-integrations/Makefile b/sysutils/datadog-integrations/Makefile
index f2c728dc4f3e..adec374a541d 100644
--- a/sysutils/datadog-integrations/Makefile
+++ b/sysutils/datadog-integrations/Makefile
@@ -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
diff --git a/sysutils/py-ansible-core/Makefile b/sysutils/py-ansible-core/Makefile
index 0c0bc01b856c..ecb165fc7fc1 100644
--- a/sysutils/py-ansible-core/Makefile
+++ b/sysutils/py-ansible-core/Makefile
@@ -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
diff --git a/sysutils/py-azure-cli-core/Makefile b/sysutils/py-azure-cli-core/Makefile
index 64f0043600ae..f4972803f65c 100644
--- a/sysutils/py-azure-cli-core/Makefile
+++ b/sysutils/py-azure-cli-core/Makefile
@@ -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
diff --git a/sysutils/py-azure-cli/Makefile b/sysutils/py-azure-cli/Makefile
index 719617a5c8d0..c5ee2de24e6e 100644
--- a/sysutils/py-azure-cli/Makefile
+++ b/sysutils/py-azure-cli/Makefile
@@ -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
diff --git a/textproc/py-pdfminer.six/Makefile b/textproc/py-pdfminer.six/Makefile
index d9436e07030a..1deb2467a7ed 100644
--- a/textproc/py-pdfminer.six/Makefile
+++ b/textproc/py-pdfminer.six/Makefile
@@ -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
diff --git a/www/buku/Makefile b/www/buku/Makefile
index 330a33637767..0a3292c471f6 100644
--- a/www/buku/Makefile
+++ b/www/buku/Makefile
@@ -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
diff --git a/www/mitmproxy/Makefile b/www/mitmproxy/Makefile
index e6dcbcd0429b..4d087930c4ac 100644
--- a/www/mitmproxy/Makefile
+++ b/www/mitmproxy/Makefile
@@ -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
diff --git a/www/py-autobahn/Makefile b/www/py-autobahn/Makefile
index 6aabbb8e6ae8..342726298dfb 100644
--- a/www/py-autobahn/Makefile
+++ b/www/py-autobahn/Makefile
@@ -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 \
diff --git a/www/py-azure-storage/Makefile b/www/py-azure-storage/Makefile
index 2482de1a4f05..fa234902b8ee 100644
--- a/www/py-azure-storage/Makefile
+++ b/www/py-azure-storage/Makefile
@@ -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
diff --git a/www/py-flask-jwt-extended/Makefile b/www/py-flask-jwt-extended/Makefile
index 2b125d6d3eb4..dd5612c3fad8 100644
--- a/www/py-flask-jwt-extended/Makefile
+++ b/www/py-flask-jwt-extended/Makefile
@@ -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
diff --git a/www/py-pyjwt/Makefile b/www/py-pyjwt/Makefile
index 3cfa76e9ab5a..cc9e18586479 100644
--- a/www/py-pyjwt/Makefile
+++ b/www/py-pyjwt/Makefile
@@ -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>
diff --git a/www/py-pyjwt1/Makefile b/www/py-pyjwt1/Makefile
index 87da074d0cb3..31d754e52ae7 100644
--- a/www/py-pyjwt1/Makefile
+++ b/www/py-pyjwt1/Makefile
@@ -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
diff --git a/www/py-requests_ntlm/Makefile b/www/py-requests_ntlm/Makefile
index 4da24ff625ab..3a4db508deb6 100644
--- a/www/py-requests_ntlm/Makefile
+++ b/www/py-requests_ntlm/Makefile
@@ -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>
diff --git a/www/py-scrapy/Makefile b/www/py-scrapy/Makefile
index f8fb1c5bcef9..c484c623984f 100644
--- a/www/py-scrapy/Makefile
+++ b/www/py-scrapy/Makefile
@@ -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
diff --git a/x11/xpra/Makefile b/x11/xpra/Makefile
index 1fdf6f21709d..6ef416b0a295 100644
--- a/x11/xpra/Makefile
+++ b/x11/xpra/Makefile
@@ -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} \