bcb2f287e1
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
53 lines
1.1 KiB
Nix
53 lines
1.1 KiB
Nix
{ lib
|
|
, python3Packages
|
|
, fetchFromGitHub
|
|
, installShellFiles
|
|
}:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "pyradio";
|
|
version = "0.9.3.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "coderholic";
|
|
repo = "pyradio";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-EoHCOg4nPkKRSFX/3AUKJaXzS6J1quwtv+mKeKBu5Ns=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
installShellFiles
|
|
];
|
|
|
|
propagatedBuildInputs = with python3Packages; [
|
|
dnspython
|
|
netifaces
|
|
psutil
|
|
python-dateutil
|
|
requests
|
|
rich
|
|
];
|
|
|
|
postPatch = ''
|
|
# Disable update check
|
|
substituteInPlace pyradio/config \
|
|
--replace-fail "distro = None" "distro = NixOS"
|
|
'';
|
|
|
|
checkPhase = ''
|
|
$out/bin/pyradio --help
|
|
'';
|
|
|
|
postInstall = ''
|
|
installManPage *.1
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "http://www.coderholic.com/pyradio/";
|
|
description = "Curses based internet radio player";
|
|
mainProgram = "pyradio";
|
|
changelog = "https://github.com/coderholic/pyradio/releases/tag/${version}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ contrun yayayayaka ];
|
|
};
|
|
}
|