nixpkgs/pkgs/applications/audio/pyradio/default.nix

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

37 lines
788 B
Nix
Raw Normal View History

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