mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 03:43:06 +00:00
37 lines
788 B
Nix
37 lines
788 B
Nix
{ lib, python3Packages, fetchFromGitHub, installShellFiles }:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "pyradio";
|
|
version = "0.8.9.26";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "coderholic";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
sha256 = "sha256-RuQAbmzB8s+YmJLSbzJTQtpiYLr1oFtrxKF8P+MlHeU=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|