config BR2_PACKAGE_PYTHON_TWISTED
	bool "python-twisted"
	depends on BR2_PACKAGE_PYTHON3 # python-pyhamcrest; python-hyperlink -> python-idna
	select BR2_PACKAGE_PYTHON_INCREMENTAL
	select BR2_PACKAGE_PYTHON_ATTRS # runtime
	select BR2_PACKAGE_PYTHON_AUTOMAT # runtime
	select BR2_PACKAGE_PYTHON_CONSTANTLY # runtime
	select BR2_PACKAGE_PYTHON_HYPERLINK # runtime
	select BR2_PACKAGE_PYTHON_PYHAMCREST # runtime
	select BR2_PACKAGE_PYTHON_ZOPE_INTERFACE # runtime
	help
	  Twisted is an event-driven networking engine written in
	  Python.

	  https://twistedmatrix.com/trac/

if BR2_PACKAGE_PYTHON_TWISTED

config BR2_PACKAGE_PYTHON_TWISTED_HTTP2
	bool "HTTP2 support"
	select BR2_PACKAGE_PYTHON_H2 # runtime
	select BR2_PACKAGE_PYTHON_PRIORITY # runtime

config BR2_PACKAGE_PYTHON_TWISTED_TLS
	bool "TLS support"
	depends on BR2_INSTALL_LIBSTDCPP # python-{pyopenssl,service-identity}
	select BR2_PACKAGE_PYTHON_IDNA # runtime
	select BR2_PACKAGE_PYTHON_PYOPENSSL # runtime
	select BR2_PACKAGE_PYTHON_SERVICE_IDENTITY # runtime

comment "TLS support needs a toolchain w/ C++"
	depends on !BR2_INSTALL_LIBSTDCPP

endif
