nixpkgs/pkgs/by-name/py/pyradio/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

54 lines
1.1 KiB
Nix
Raw Normal View History

2022-12-10 10:33:25 +00:00
{ lib
, python3Packages
, fetchFromGitHub
, installShellFiles
}:
2020-03-02 06:00:08 +00:00
python3Packages.buildPythonApplication rec {
pname = "pyradio";
2024-10-23 03:31:17 +00:00
version = "0.9.3.11.1";
2022-01-19 10:29:43 +00:00
2020-03-02 06:00:08 +00:00
src = fetchFromGitHub {
owner = "coderholic";
2024-02-25 11:46:35 +00:00
repo = "pyradio";
2022-04-29 09:54:05 +00:00
rev = "refs/tags/${version}";
2024-10-23 03:31:17 +00:00
hash = "sha256-k/MgvdR4ed9qMLx52AAK7Aq963/qkUyF+bam06yCZHc=";
2020-03-02 06:00:08 +00:00
};
2022-12-10 10:33:25 +00:00
nativeBuildInputs = [
installShellFiles
];
2022-05-25 04:20:00 +00:00
propagatedBuildInputs = with python3Packages; [
dnspython
2024-02-25 11:46:35 +00:00
netifaces
psutil
python-dateutil
requests
rich
2022-05-25 04:20:00 +00:00
];
postPatch = ''
# Disable update check
substituteInPlace pyradio/config \
--replace-fail "distro = None" "distro = NixOS"
'';
2020-03-02 06:00:08 +00:00
checkPhase = ''
$out/bin/pyradio --help
'';
2022-05-25 04:20:00 +00: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";
mainProgram = "pyradio";
2022-12-10 10:33:25 +00:00
changelog = "https://github.com/coderholic/pyradio/releases/tag/${version}";
2020-03-02 06:00:08 +00:00
license = licenses.mit;
2024-04-07 09:44:30 +00:00
maintainers = with maintainers; [ contrun yayayayaka ];
2020-03-02 06:00:08 +00:00
};
}