2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2018-10-17 18:32:31 +00:00
|
|
|
, buildPythonPackage
|
2021-10-30 14:54:11 +00:00
|
|
|
, fetchFromGitHub
|
2018-10-17 18:32:31 +00:00
|
|
|
, isPyPy
|
2021-10-31 21:29:17 +00:00
|
|
|
, makeWrapper
|
|
|
|
, rtmpdump
|
2018-10-17 18:32:31 +00:00
|
|
|
, pycrypto
|
|
|
|
, requests
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "livestreamer";
|
2021-10-31 21:29:17 +00:00
|
|
|
version = "1.12.2";
|
2018-10-17 18:32:31 +00:00
|
|
|
disabled = isPyPy;
|
|
|
|
|
2021-10-30 14:54:11 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "chrippa";
|
|
|
|
repo = "livestreamer";
|
2021-10-31 21:29:17 +00:00
|
|
|
rev = "v${version}";
|
2021-10-30 14:54:11 +00:00
|
|
|
sha256 = "sha256-PqqyBh+oMmu7Ynly3fqx/+6mQYX+6SpI0Okj2O+YLz0=";
|
2018-10-17 18:32:31 +00:00
|
|
|
};
|
|
|
|
|
2021-10-31 21:29:17 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2018-10-17 18:32:31 +00:00
|
|
|
|
2021-10-31 21:29:17 +00:00
|
|
|
propagatedBuildInputs = [ rtmpdump pycrypto requests ];
|
2018-10-17 18:32:31 +00:00
|
|
|
|
|
|
|
postInstall = ''
|
2021-10-31 21:29:17 +00:00
|
|
|
wrapProgram $out/bin/livestreamer --prefix PATH : ${lib.makeBinPath [ rtmpdump ]}
|
2018-10-17 18:32:31 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://livestreamer.tanuki.se";
|
2021-10-31 21:29:17 +00:00
|
|
|
description = "Livestreamer is CLI program that extracts streams from various services and pipes them into a video player of choice";
|
2018-10-17 18:32:31 +00:00
|
|
|
license = licenses.bsd2;
|
2019-12-05 07:29:48 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2018-10-17 18:32:31 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|