Files
nixpkgs/pkgs/by-name/py/pyradio/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

61 lines
1.2 KiB
Nix

{
lib,
python3Packages,
fetchFromGitHub,
installShellFiles,
}:
python3Packages.buildPythonApplication rec {
pname = "pyradio";
version = "0.9.3.11.19";
pyproject = true;
src = fetchFromGitHub {
owner = "coderholic";
repo = "pyradio";
tag = version;
hash = "sha256-fjTaURYY2pSb3mod4Vffbczmyxsn0/4SAXkb68mRhQA=";
};
nativeBuildInputs = [
installShellFiles
];
build-system = with python3Packages; [ setuptools ];
dependencies = 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/${src.tag}";
license = licenses.mit;
maintainers = with maintainers; [
contrun
yayayayaka
];
};
}