depot/third_party/nixpkgs/pkgs/applications/audio/pyradio/default.nix
Default email a66bca1520 Project import generated by Copybara.
GitOrigin-RevId: 40f79f003b6377bd2f4ed4027dde1f8f922995dd
2022-12-17 11:02:37 +01:00

43 lines
876 B
Nix

{ lib
, python3Packages
, fetchFromGitHub
, installShellFiles
}:
python3Packages.buildPythonApplication rec {
pname = "pyradio";
version = "0.8.9.32";
src = fetchFromGitHub {
owner = "coderholic";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-1lczH8xTZV1XVVByLAGXJbjXd20JUJALIJJ3s9+orxM=";
};
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";
changelog = "https://github.com/coderholic/pyradio/releases/tag/${version}";
license = licenses.mit;
maintainers = with maintainers; [ contrun ];
};
}