mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-12 00:33:10 +00:00
31 lines
674 B
Nix
31 lines
674 B
Nix
{ lib, python3Packages, fetchFromGitHub }:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "pyradio";
|
|
version = "0.8.9.17";
|
|
|
|
propagatedBuildInputs = with python3Packages; [
|
|
requests
|
|
psutil
|
|
dnspython
|
|
];
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "coderholic";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
sha256 = "sha256-lfDSD1+xbA6tAKeHKciq/n6YHWS4JTOvjIqOn+FQ2yA=";
|
|
};
|
|
|
|
checkPhase = ''
|
|
$out/bin/pyradio --help
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "http://www.coderholic.com/pyradio/";
|
|
description = "Curses based internet radio player";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ contrun ];
|
|
};
|
|
}
|