nixpkgs/pkgs/applications/audio/pyradio/default.nix
2022-07-03 10:08:45 +00:00

36 lines
788 B
Nix

{ lib, python3Packages, fetchFromGitHub, installShellFiles }:
python3Packages.buildPythonApplication rec {
pname = "pyradio";
version = "0.8.9.22";
src = fetchFromGitHub {
owner = "coderholic";
repo = pname;
rev = "refs/tags/${version}";
sha256 = "sha256-QBgXg2SNEQX1ngY+cEWqStC0zsFZ0Er81tuhTszbHWM=";
};
nativeBuildInputs = [ installShellFiles ];
propagatedBuildInputs = with python3Packages; [
requests
psutil
dnspython
];
checkPhase = ''
$out/bin/pyradio --help
'';
postInstall = ''
installManPage *.1
'';
meta = with lib; {
homepage = "http://www.coderholic.com/pyradio/";
description = "Curses based internet radio player";
license = licenses.mit;
maintainers = with maintainers; [ contrun ];
};
}