diff --git a/comms/Makefile b/comms/Makefile index 4ea53334d9c9..2defa1b3938c 100644 --- a/comms/Makefile +++ b/comms/Makefile @@ -1,239 +1,240 @@ COMMENT = Communication utilities SUBDIR += acfax SUBDIR += airspy SUBDIR += airspyhf SUBDIR += aldo SUBDIR += amtterm SUBDIR += anyremote SUBDIR += apitran SUBDIR += aprsd SUBDIR += atslog SUBDIR += bfhist SUBDIR += bforce-kst SUBDIR += birda SUBDIR += bladerf SUBDIR += bluegps SUBDIR += bluez-firmware SUBDIR += bpl+ SUBDIR += chirp SUBDIR += chu SUBDIR += conserver-com SUBDIR += cqrlog SUBDIR += cubicsdr SUBDIR += cutecom SUBDIR += cwdaemon SUBDIR += cwstudio SUBDIR += cyclonedds SUBDIR += dcf77pi SUBDIR += deforaos-phone SUBDIR += dfu-programmer SUBDIR += dfu-util SUBDIR += digiham SUBDIR += direwolf SUBDIR += dsd SUBDIR += dump1090 SUBDIR += ebook2cw SUBDIR += ebusd SUBDIR += echolinux SUBDIR += emacs-eat SUBDIR += ems-flasher SUBDIR += fl_moxgen SUBDIR += flamp SUBDIR += flcluster SUBDIR += fldigi SUBDIR += fllog SUBDIR += flmsg SUBDIR += flrig SUBDIR += flwrap SUBDIR += freedv SUBDIR += gammu SUBDIR += gensio SUBDIR += gkermit SUBDIR += gnocky SUBDIR += gnokii SUBDIR += gnuradio SUBDIR += gpredict SUBDIR += gqrx SUBDIR += gr-osmosdr SUBDIR += grig SUBDIR += gstreamer1-plugins-spandsp SUBDIR += hackrf SUBDIR += hamlib SUBDIR += hcidump SUBDIR += hidapi SUBDIR += hydrasdr SUBDIR += ibp SUBDIR += iceoryx SUBDIR += inspectrum SUBDIR += iwmbt-firmware SUBDIR += java-simple-serial-connector SUBDIR += kermit SUBDIR += klog SUBDIR += libdc SUBDIR += libfap SUBDIR += libfec SUBDIR += libfobos SUBDIR += libimobiledevice SUBDIR += libimobiledevice-glue SUBDIR += libirman SUBDIR += libmodbus SUBDIR += librs232 SUBDIR += libsdr SUBDIR += libsdr-gui SUBDIR += libticables2 SUBDIR += libticalcs2 SUBDIR += libusbmuxd SUBDIR += libusbsio SUBDIR += limesuite SUBDIR += linrad SUBDIR += linux-rl9-qt5-qtconnectivity SUBDIR += linux-rl9-qt5-qtsensors SUBDIR += linux-rl9-qt5-qtserialbus SUBDIR += linux-rl9-qt5-qtserialport SUBDIR += liquid-dsp SUBDIR += lirc SUBDIR += locator SUBDIR += lrzsz SUBDIR += lysdr SUBDIR += mbelib SUBDIR += mgetty+sendfax SUBDIR += minicom SUBDIR += morse SUBDIR += multimon-ng SUBDIR += nanovna-saver SUBDIR += nasawash SUBDIR += nec2c SUBDIR += nmealib SUBDIR += obexapp SUBDIR += opencbm SUBDIR += opencbm-kmod SUBDIR += opencbm-plugin-xa1541 SUBDIR += openobex SUBDIR += openzwave SUBDIR += owfs SUBDIR += p5-Cisco-UCS SUBDIR += p5-Device-Gsm SUBDIR += p5-Device-Modem SUBDIR += p5-Device-SerialPort SUBDIR += p5-Fax-Hylafax-Client SUBDIR += p5-Nexmo-SMS SUBDIR += p5-SMS-SMS77 SUBDIR += p5-SMS-Send SUBDIR += p5-SMS-Send-DeviceGsm SUBDIR += p5-SMS-Send-NexmoUnicode SUBDIR += p5-SMS-Send-TW-HiAir SUBDIR += p5-SMS-Send-TW-PChome SUBDIR += p5-SMS-Send-TW-Socket2Air SUBDIR += p5-SMS-Send-TW-chtsns SUBDIR += p5-SMS-Send-TW-emome SUBDIR += pear-Horde_ActiveSync SUBDIR += pear-Horde_SyncMl SUBDIR += picocom SUBDIR += pr SUBDIR += predict SUBDIR += py-ModbusTCP SUBDIR += py-adafruit-ampy SUBDIR += py-elelabs-zigbee-ezsp-utility SUBDIR += py-esptool SUBDIR += py-fritzconnection SUBDIR += py-hid SUBDIR += py-hidapi SUBDIR += py-libimobiledevice SUBDIR += py-libscrc SUBDIR += py-libusbsio SUBDIR += py-nkdfu SUBDIR += py-pylink-square SUBDIR += py-pymodbus SUBDIR += py-pynitrokey SUBDIR += py-pyocd SUBDIR += py-pyocd-pemicro SUBDIR += py-pyserial SUBDIR += py-pyserial-asyncio + SUBDIR += py-pyserial-asyncio-fast SUBDIR += py-sdm_modbus SUBDIR += py-spsdk SUBDIR += py-streamdeck SUBDIR += py-xmodem SUBDIR += pyla SUBDIR += qico SUBDIR += qpage SUBDIR += qrq SUBDIR += qsstv SUBDIR += qt5-connectivity SUBDIR += qt5-sensors SUBDIR += qt5-serialbus SUBDIR += qt5-serialport SUBDIR += qt6-connectivity SUBDIR += qt6-sensors SUBDIR += qt6-serialbus SUBDIR += qt6-serialport SUBDIR += qtel SUBDIR += quisk SUBDIR += redsea SUBDIR += remserial SUBDIR += rtl-433 SUBDIR += rtl-sdr SUBDIR += rtlbt-firmware SUBDIR += rubygem-callsign SUBDIR += rubygem-ruby-termios SUBDIR += rubygem-serialport SUBDIR += rxtx SUBDIR += scmxx SUBDIR += scrcpy SUBDIR += sdr++ SUBDIR += ser2net SUBDIR += serialoverip SUBDIR += sigdigger SUBDIR += sigutils SUBDIR += smstools3 SUBDIR += snap7 SUBDIR += soapyairspy SUBDIR += soapybladerf SUBDIR += soapyplutosdr SUBDIR += soapyredpitaya SUBDIR += soapyremote SUBDIR += soapysdr-rtlsdr SUBDIR += soapysdrhackrf SUBDIR += soapyuhd SUBDIR += spandsp SUBDIR += splat SUBDIR += sredird SUBDIR += sunxi-tools SUBDIR += suscan SUBDIR += suwidgets SUBDIR += svxlink SUBDIR += syncterm SUBDIR += tcpser SUBDIR += thebridge SUBDIR += tilp2 SUBDIR += tio SUBDIR += tits SUBDIR += tkscanfax SUBDIR += tlf SUBDIR += trustedqsl SUBDIR += twpsk SUBDIR += uarduno SUBDIR += uhd SUBDIR += uird SUBDIR += ujprog SUBDIR += unixcw SUBDIR += usbmuxd SUBDIR += viewfax SUBDIR += vrflash SUBDIR += wsjtx SUBDIR += wsjtz SUBDIR += wwl SUBDIR += wy60 SUBDIR += xastir SUBDIR += xcwcp SUBDIR += xdemorse SUBDIR += xdx SUBDIR += xlog SUBDIR += xmorse SUBDIR += xnec2c SUBDIR += xnecview SUBDIR += yagiuda SUBDIR += yfklog SUBDIR += zigbee2mqtt .include diff --git a/comms/py-pyserial-asyncio-fast/Makefile b/comms/py-pyserial-asyncio-fast/Makefile new file mode 100644 index 000000000000..cb212c7e7894 --- /dev/null +++ b/comms/py-pyserial-asyncio-fast/Makefile @@ -0,0 +1,28 @@ +PORTNAME= pyserial-asyncio-fast +DISTVERSION= 0.16 +CATEGORIES= comms python +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= samm@freebsd.org +COMMENT= Async I/O extension package for the Python Serial Port Extension +WWW= https://github.com/home-assistant-libs/pyserial-asyncio-fast + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE.txt + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pyserial>=3.1.1:comms/py-pyserial@${PY_FLAVOR} + +USES= python shebangfix +USE_GITHUB= yes +GH_ACCOUNT= home-assistant-libs +USE_PYTHON= autoplist concurrent pep517 + +NO_ARCH= yes + +do-test: + ${SETENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} \ + ${PYTHON_CMD} ${WRKSRC}/test/test_asyncio.py + +.include diff --git a/comms/py-pyserial-asyncio-fast/distinfo b/comms/py-pyserial-asyncio-fast/distinfo new file mode 100644 index 000000000000..2f5d761bc1ac --- /dev/null +++ b/comms/py-pyserial-asyncio-fast/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1770710068 +SHA256 (home-assistant-libs-pyserial-asyncio-fast-0.16_GH0.tar.gz) = d1eaba255c20b7faf6c7154237819a46b8bb95e8a66f00e234615cc53127e849 +SIZE (home-assistant-libs-pyserial-asyncio-fast-0.16_GH0.tar.gz) = 32558 diff --git a/comms/py-pyserial-asyncio-fast/files/patch-pyproject.toml b/comms/py-pyserial-asyncio-fast/files/patch-pyproject.toml new file mode 100644 index 000000000000..ac4655b9357d --- /dev/null +++ b/comms/py-pyserial-asyncio-fast/files/patch-pyproject.toml @@ -0,0 +1,15 @@ +--- pyproject.toml.orig 2025-03-27 02:34:12 UTC ++++ pyproject.toml +@@ -1,11 +1,9 @@ + [build-system] + build-backend = "setuptools.build_meta" +-requires = ["setuptools>=77.0"] ++requires = ["setuptools"] + + [project] + name = "pyserial-asyncio-fast" +-license = "BSD-3-Clause" +-license-files = ["LICENSE.txt", "CREDITS.rst"] + description = "Python Serial Port Extension - Asynchronous I/O support" + readme = "README.rst" + authors = [{ name = "pySerial-team" }] diff --git a/comms/py-pyserial-asyncio-fast/pkg-descr b/comms/py-pyserial-asyncio-fast/pkg-descr new file mode 100644 index 000000000000..ab346173fa7c --- /dev/null +++ b/comms/py-pyserial-asyncio-fast/pkg-descr @@ -0,0 +1,4 @@ +This module provides asynchronous I/O on serial ports, extending the +pyserial module. This version implements eager writes like cpython asyncio +selector_events does. This can significantly reduce overhead since the asyncio +writer is no longer added and removed frequently.