diff --git a/net-p2p/Makefile b/net-p2p/Makefile index 820986f6fb2d..aa2a5e1198c4 100644 --- a/net-p2p/Makefile +++ b/net-p2p/Makefile @@ -1,107 +1,108 @@ COMMENT = Peer-to-peer network applications SUBDIR += amule SUBDIR += autoscan SUBDIR += awgg SUBDIR += bazarr SUBDIR += bitcoin SUBDIR += bitcoin-daemon SUBDIR += bitcoin-utils SUBDIR += bitmark SUBDIR += bitmark-cli SUBDIR += bitmark-daemon SUBDIR += bitmark-recorder SUBDIR += btcheck SUBDIR += c-lightning SUBDIR += cardano-db-sync SUBDIR += cardano-node SUBDIR += clboss SUBDIR += cncli SUBDIR += cpuminer SUBDIR += createtorrent SUBDIR += ctcs SUBDIR += ctorrent SUBDIR += dclib SUBDIR += deluge SUBDIR += deluge-cli SUBDIR += ed2k SUBDIR += ed2k-hash SUBDIR += eiskaltdcpp-cli SUBDIR += eiskaltdcpp-daemon SUBDIR += eiskaltdcpp-data SUBDIR += eiskaltdcpp-gtk SUBDIR += eiskaltdcpp-lib SUBDIR += ethash SUBDIR += go-ethereum SUBDIR += gtk-gnutella SUBDIR += intermodal SUBDIR += jackett SUBDIR += jigdo SUBDIR += ktorrent SUBDIR += libktorrent SUBDIR += libswift SUBDIR += libtorrent SUBDIR += libtorrent-rasterbar SUBDIR += libtorrent-rasterbar2 SUBDIR += libutp SUBDIR += lidarr SUBDIR += linuxdcpp SUBDIR += litecoin SUBDIR += litecoin-daemon SUBDIR += litecoin-utils SUBDIR += lxmf SUBDIR += microdc2 SUBDIR += minder SUBDIR += mktorrent SUBDIR += mldonkey SUBDIR += mldonkey-core SUBDIR += mldonkey-gui SUBDIR += monero-cli SUBDIR += namecoin SUBDIR += namecoin-daemon SUBDIR += namecoin-utils SUBDIR += ncdc SUBDIR += nomadnet SUBDIR += ogmios SUBDIR += opendchub SUBDIR += oura SUBDIR += p5-Net-BitTorrent SUBDIR += p5-Net-BitTorrent-File SUBDIR += p5-Net-BitTorrent-PeerPacket SUBDIR += p5-Net-DirectConnect SUBDIR += p5-WWW-BitTorrent SUBDIR += phex SUBDIR += prowlarr SUBDIR += pulsar-client-cpp SUBDIR += py-ed2k-tools SUBDIR += py-libtorrent-rasterbar SUBDIR += py-nicotine-plus + SUBDIR += py-pulsar-client SUBDIR += py-transmission-rpc SUBDIR += py-tremc SUBDIR += pyln-bolt7 SUBDIR += pyln-client SUBDIR += pyln-proto SUBDIR += qbittorrent SUBDIR += radarr SUBDIR += readarr SUBDIR += reticulum SUBDIR += retroshare SUBDIR += rslsync SUBDIR += rtorrent SUBDIR += shx SUBDIR += sonarr SUBDIR += torrent-file-editor SUBDIR += torrentcheck SUBDIR += torrentsniff SUBDIR += transmission SUBDIR += transmission-components SUBDIR += transmission-remote-gui SUBDIR += tremotesf SUBDIR += twitch-tui SUBDIR += udpt SUBDIR += uhub SUBDIR += vuze SUBDIR += xbt SUBDIR += xmrig .include diff --git a/net-p2p/py-pulsar-client/Makefile b/net-p2p/py-pulsar-client/Makefile new file mode 100644 index 000000000000..e77f1cd0815a --- /dev/null +++ b/net-p2p/py-pulsar-client/Makefile @@ -0,0 +1,41 @@ +PORTNAME= pulsar-client +DISTVERSIONPREFIX= v +DISTVERSION= 3.5.0 +CATEGORIES= net-p2p python # machine-learning +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Apache Pulsar Python client library +WWW= https://pulsar.apache.org/ + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= pybind11>0:devel/pybind11 \ + gmake:devel/gmake +LIB_DEPENDS= libpulsar.so:net-p2p/pulsar-client-cpp +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}certifi>0:security/py-certifi@${PY_FLAVOR} +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}fastavro>=1.9.2:textproc/py-fastavro@${PY_FLAVOR} + +USES= cmake:indirect python +USE_PYTHON= flavors +USE_PYTHON= distutils autoplist pytest + +USE_GITHUB= yes +GH_ACCOUNT= apache +GH_PROJECT= pulsar-client-python + +TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} + +pre-build: # build lib_pulse.so using cmake/gmake + @cd ${CONFIGURE_WRKSRC} && \ + ${SETENVI} ${WRK_ENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} ${CMAKE_SOURCE_PATH} && \ + ${SETENVI} ${WRK_ENV} ${MAKE_ENV} ${GMAKE} + +post-install: # strip binary + @${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/_pulsar${PYTHON_EXT_SUFFIX}.so + +# tests: many tests fail with Pulsar error: TimeOut, Connection refused because Pulsar needs to be running +# tests: 107 failed, 52 passed, 1 warning in 2947.08s (0:49:07) + +.include diff --git a/net-p2p/py-pulsar-client/distinfo b/net-p2p/py-pulsar-client/distinfo new file mode 100644 index 000000000000..37563e70678b --- /dev/null +++ b/net-p2p/py-pulsar-client/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1728006662 +SHA256 (apache-pulsar-client-python-v3.5.0_GH0.tar.gz) = 72126355be58eb53701f7a0e4652ea0a04386df449b6b34686f001bcbde04f65 +SIZE (apache-pulsar-client-python-v3.5.0_GH0.tar.gz) = 105327 diff --git a/net-p2p/py-pulsar-client/pkg-descr b/net-p2p/py-pulsar-client/pkg-descr new file mode 100644 index 000000000000..8c1ee24b5d93 --- /dev/null +++ b/net-p2p/py-pulsar-client/pkg-descr @@ -0,0 +1,4 @@ +py-pulsar-client is a Pulsar Python client library. + +Pulsar Python clients support a variety of Pulsar features to enable building +applications connecting to your Pulsar cluster.