summaryrefslogtreecommitdiff
path: root/net/py-pychromecast
diff options
context:
space:
mode:
authorPo-Chuan Hsieh <sunpoet@FreeBSD.org>2024-08-05 01:08:49 +0800
committerPo-Chuan Hsieh <sunpoet@FreeBSD.org>2024-08-05 01:14:10 +0800
commit6056887c3f8741fe5abb29ee2f25f188b4f6ae4e (patch)
tree7bb905584cc15b7f59ef6e7d96548bf6bed2f3c6 /net/py-pychromecast
parentnet/py-casttube: Add missing RUN_DEPENDS (diff)
net/py-pychromecast: Update to 14.0.1
- Update PORTNAME: use lowercase - Update WWW - Add LICENSE_FILE - Convert to USE_PYTHON=pep517 - Update pkg-descr Changes: https://github.com/home-assistant-libs/pychromecast/releases
Diffstat (limited to 'net/py-pychromecast')
-rw-r--r--net/py-pychromecast/Makefile22
-rw-r--r--net/py-pychromecast/distinfo6
-rw-r--r--net/py-pychromecast/files/patch-pyproject.toml14
-rw-r--r--net/py-pychromecast/pkg-descr19
4 files changed, 40 insertions, 21 deletions
diff --git a/net/py-pychromecast/Makefile b/net/py-pychromecast/Makefile
index 4b32bf547b7d..0b34cf8acf3c 100644
--- a/net/py-pychromecast/Makefile
+++ b/net/py-pychromecast/Makefile
@@ -1,20 +1,26 @@
-PORTNAME= PyChromecast
-DISTVERSION= 13.1.0
+PORTNAME= pychromecast
+PORTVERSION= 14.0.1
CATEGORIES= net python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+DISTNAME= PyChromecast-${PORTVERSION}
-MAINTAINER= ports@freebsd.org
+MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Python module to talk to Google Chromecast
-WWW= https://pypi.org/project/PyChromecast/
+WWW= https://github.com/home-assistant-libs/pychromecast
LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
-RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}protobuf>=3.19.1:devel/py-protobuf@${PY_FLAVOR} \
- ${PYTHON_PKGNAMEPREFIX}zeroconf>=0.25.1:net/py-zeroconf@${PY_FLAVOR} \
- ${PYTHON_PKGNAMEPREFIX}casttube>=0.2.0:net/py-casttube@${PY_FLAVOR}
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=61:devel/py-setuptools@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}wheel>=0.37.1:devel/py-wheel@${PY_FLAVOR}
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}casttube>=0.2.0:net/py-casttube@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}protobuf>=4.25.1,1:devel/py-protobuf@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}zeroconf>=0.25.1:net/py-zeroconf@${PY_FLAVOR}
USES= python
-USE_PYTHON= distutils autoplist
+USE_PYTHON= autoplist concurrent pep517
+
+NO_ARCH= yes
.include <bsd.port.mk>
diff --git a/net/py-pychromecast/distinfo b/net/py-pychromecast/distinfo
index e26f94eaac24..6d94494f8779 100644
--- a/net/py-pychromecast/distinfo
+++ b/net/py-pychromecast/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1705473319
-SHA256 (PyChromecast-13.1.0.tar.gz) = 08e61a8b54bd2119d3c9ab1ec0136d3d8563aa97e0a3b57841588b9be60c2676
-SIZE (PyChromecast-13.1.0.tar.gz) = 53436
+TIMESTAMP = 1722711241
+SHA256 (PyChromecast-14.0.1.tar.gz) = e16e0a7f9488319191b8b4fa21ca0beb4bf12eeda5c9bf640241188f2bea0a3e
+SIZE (PyChromecast-14.0.1.tar.gz) = 60482
diff --git a/net/py-pychromecast/files/patch-pyproject.toml b/net/py-pychromecast/files/patch-pyproject.toml
new file mode 100644
index 000000000000..8095e8b9a4f9
--- /dev/null
+++ b/net/py-pychromecast/files/patch-pyproject.toml
@@ -0,0 +1,14 @@
+--- pyproject.toml.orig 2024-03-19 20:05:25 UTC
++++ pyproject.toml
+@@ -1,9 +1,9 @@
+ [build-system]
+-requires = ["setuptools~=65.6", "wheel~=0.37.1"]
++requires = ["setuptools>=61", "wheel>=0.37.1"]
+ build-backend = "setuptools.build_meta"
+
+ [project]
+-name = "PyChromecast"
++name = "pychromecast"
+ version = "14.0.1"
+ description = "Python module to talk to Google Chromecast."
+ readme = "README.rst"
diff --git a/net/py-pychromecast/pkg-descr b/net/py-pychromecast/pkg-descr
index c7de15e49366..a4766f516bee 100644
--- a/net/py-pychromecast/pkg-descr
+++ b/net/py-pychromecast/pkg-descr
@@ -1,10 +1,9 @@
-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
+Library for Python 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