Index | Thread | Search

From:
Stuart Henderson <stu@spacehopper.org>
Subject:
Re: New: audio/pyradio: curses-based Internet Radio browser/player
To:
Rafael Sadowski <rafael@sizeofvoid.org>
Cc:
Chris Billington <emulti@disroot.org>, ports@openbsd.org
Date:
Sat, 20 Jun 2026 10:56:55 +0100

Download raw body.

Thread
On 2026/06/20 07:29, Rafael Sadowski wrote:
> On Fri Jun 19, 2026 at 02:20:37PM +0800, Chris Billington wrote:
> > Chris Billington wrote:
> > > audio/pyradio: curses-based internet radio player
> > > 
> > > Rationale:
> > > The only other terminal-based internet radio player in Ports is
> > > audio/curseradio, which unfortunately uses the apparently-unmaintained
> > > online directory http(s)://opml.radiotime.com, so returns many dead
> > > links to stations.
> > > 
> > > audio/curseradio is broken at the moment but in [1] I attached an update
> > > to make it functional again.
> > > 
> > > pyradio seems actively developed and uses the open stream directory
> > > radio-browser.info which is community-maintained.
> > > 
> > > This port requires a new dependency devel/py-rapidfuzz, a fuzzy search
> > > library with other potential uses, which is described in a separate
> > > email.
> > > 
> > > Tested on 7.9-stable, testers on -current welcome
> > > 
> > > Comments, corrections, OKs?
> > > 
> > > Chris
> > > 
> > > [1] https://marc.info/?l=openbsd-ports&m=178167592183120&w=2
> > 
> > Now also tested on 7.9-current amd64 (Jun 12), no issues found
> > 
> > Chris
> > 
> 
> Here are some cosmetic tweaks:

committed with tweaks,

> - Remove HOMEPAGE, V and DISTNAME; GH_* does it for you.

should out the ver in MODPY_DISTV

> - Start COMMENT with lower-case.
> - Sort RUN_DEPENDS and rename py-rapidfuzz category.

I went with the order from requirements_pipx.txt.
wheel is a build dep only (and already added there by infrastructure).

also made mpv optional if you have another supported player,
and added a missing dep for xdg-open.

> Otherwise OK rsadowski to import it.
> 
> --- Makefile.orig	Sat Jun 20 07:21:11 2026
> +++ Makefile	Sat Jun 20 07:27:16 2026
> @@ -1,13 +1,9 @@
> -COMMENT =	Curses based internet radio player
> -V =		0.9.3.11.31
> -DISTNAME =	pyradio-${V}
> +COMMENT =	curses based internet radio player
>  CATEGORIES =	audio
>  
> -HOMEPAGE =	https://github.com/coderholic/pyradio
> -
>  GH_ACCOUNT =	coderholic
>  GH_PROJECT =	pyradio
> -GH_TAGNAME =	${V}
> +GH_TAGNAME =	0.9.3.11.31
>  
>  # MIT
>  PERMIT_PACKAGE = Yes
> @@ -16,17 +12,17 @@ MODULES =	lang/python
>  
>  MODPY_PYBUILD =	setuptools
>  
> -RUN_DEPENDS =	net/py-dnspython \
> -		sysutils/py-psutil \
> -		devel/py-wheel \
> +RUN_DEPENDS =	devel/py-dateutil \
>  		devel/py-rich \
> -		devel/py-dateutil \
> -		devel/py-rapidfuzz \
> +		devel/py-wheel \
> +		multimedia/mpv \
> +		net/py-dnspython \
>  		net/py-netifaces \
> +		sysutils/py-psutil \
>  		textproc/py-charset-normalizer \
> +		textproc/py-rapidfuzz \
>  		www/py-requests \
> -		x11/dbus \
> -		multimedia/mpv
> +		x11/dbus
>  
>  NO_TEST =	Yes
>  
>