From fae58da9925d3d322f26aa1f1752c1269adbac33 Mon Sep 17 00:00:00 2001 From: Lexi Winter Date: Tue, 26 Dec 2023 11:54:26 +0000 Subject: [PATCH] net/py-pychromecast: New port Python module to talk to Google Chromecast. PR: 275947 Approved by: tcberner (mentor) Differential Revision: https://reviews.freebsd.org/D43387 --- net/Makefile | 1 + net/py-pychromecast/Makefile | 20 ++++++++++++++++++++ net/py-pychromecast/distinfo | 3 +++ net/py-pychromecast/pkg-descr | 10 ++++++++++ 4 files changed, 34 insertions(+) create mode 100644 net/py-pychromecast/Makefile create mode 100644 net/py-pychromecast/distinfo create mode 100644 net/py-pychromecast/pkg-descr diff --git a/net/Makefile b/net/Makefile index d78476f05ea3..0f9fc6b7b35f 100644 --- a/net/Makefile +++ b/net/Makefile @@ -1093,6 +1093,7 @@ SUBDIR += py-pcapy-ng SUBDIR += py-port-for SUBDIR += py-portend + SUBDIR += py-pychromecast SUBDIR += py-pyenet SUBDIR += py-pyfixbuf SUBDIR += py-pygeoip diff --git a/net/py-pychromecast/Makefile b/net/py-pychromecast/Makefile new file mode 100644 index 000000000000..2f46f5ba1ba1 --- /dev/null +++ b/net/py-pychromecast/Makefile @@ -0,0 +1,20 @@ +PORTNAME= PyChromecast +DISTVERSION= 13.0.8 +CATEGORIES= net python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= lexi.freebsd@le-fay.org +COMMENT= Python module to talk to Google Chromecast +WWW= https://pypi.org/project/PyChromecast/ + +LICENSE= MIT + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}protobuf>0:devel/py-protobuf@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}zeroconf>0:net/py-zeroconf@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}casttube>0:net/py-casttube@${PY_FLAVOR} + +USES= python +USE_PYTHON= distutils autoplist + +.include diff --git a/net/py-pychromecast/distinfo b/net/py-pychromecast/distinfo new file mode 100644 index 000000000000..2017f205ee2f --- /dev/null +++ b/net/py-pychromecast/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1703588893 +SHA256 (PyChromecast-13.0.8.tar.gz) = e4b7523db137f8de05eedcc6154113b68532848629442b448c2334fac966a447 +SIZE (PyChromecast-13.0.8.tar.gz) = 52095 diff --git a/net/py-pychromecast/pkg-descr b/net/py-pychromecast/pkg-descr new file mode 100644 index 000000000000..c7de15e49366 --- /dev/null +++ b/net/py-pychromecast/pkg-descr @@ -0,0 +1,10 @@ +Library for Python 3.6+ to communicate with the Google Chromecast. + +It currently supports: +* Auto discovering connected Chromecasts on the network +* Start the default media receiver and play any online media +* Control playback of current playing media +* Implement Google Chromecast api v2 +* Communicate with apps via channels +* Easily extendable to add support for unsupported namespaces +* Multi-room setups with Audio cast devices