2022-05-25 05:20:00 +01:00
|
|
|
{ lib, python3Packages, fetchFromGitHub, installShellFiles }:
|
2020-03-02 06:00:08 +00:00
|
|
|
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
|
|
pname = "pyradio";
|
2022-09-27 14:13:52 +01:00
|
|
|
version = "0.8.9.28";
|
2022-01-19 10:29:43 +00:00
|
|
|
|
2020-03-02 06:00:08 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "coderholic";
|
|
|
|
repo = pname;
|
2022-04-29 10:54:05 +01:00
|
|
|
rev = "refs/tags/${version}";
|
2022-09-27 14:13:52 +01:00
|
|
|
sha256 = "sha256-0j0AQZk+WEkcRTL/peAxzRw23gThlGtMnqoms2aUCrc=";
|
2020-03-02 06:00:08 +00:00
|
|
|
};
|
|
|
|
|
2022-05-25 05:20:00 +01:00
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3Packages; [
|
|
|
|
requests
|
|
|
|
psutil
|
|
|
|
dnspython
|
|
|
|
];
|
|
|
|
|
2020-03-02 06:00:08 +00:00
|
|
|
checkPhase = ''
|
|
|
|
$out/bin/pyradio --help
|
|
|
|
'';
|
|
|
|
|
2022-05-25 05:20:00 +01:00
|
|
|
postInstall = ''
|
|
|
|
installManPage *.1
|
|
|
|
'';
|
|
|
|
|
2020-03-02 06:00:08 +00:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = "http://www.coderholic.com/pyradio/";
|
|
|
|
description = "Curses based internet radio player";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ contrun ];
|
|
|
|
};
|
|
|
|
}
|