2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2018-10-17 19:32:31 +01:00
|
|
|
, buildPythonPackage
|
|
|
|
, pkgs
|
|
|
|
, isPyPy
|
|
|
|
, pycrypto
|
|
|
|
, requests
|
|
|
|
, singledispatch
|
|
|
|
, futures
|
|
|
|
, isPy27
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
version = "1.12.2";
|
|
|
|
pname = "livestreamer";
|
|
|
|
disabled = isPyPy;
|
|
|
|
|
|
|
|
src = pkgs.fetchurl {
|
|
|
|
url = "https://github.com/chrippa/livestreamer/archive/v${version}.tar.gz";
|
|
|
|
sha256 = "1fp3d3z2grb1ls97smjkraazpxnvajda2d1g1378s6gzmda2jvjd";
|
|
|
|
};
|
|
|
|
|
2021-02-07 09:17:39 +00:00
|
|
|
nativeBuildInputs = [ pkgs.makeWrapper ];
|
2018-10-17 19:32:31 +01:00
|
|
|
|
|
|
|
propagatedBuildInputs = [ pkgs.rtmpdump pycrypto requests ]
|
2021-01-24 00:29:22 +00:00
|
|
|
++ lib.optionals isPy27 [ singledispatch futures ];
|
2018-10-17 19:32:31 +01:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/livestreamer --prefix PATH : ${pkgs.rtmpdump}/bin
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://livestreamer.tanuki.se";
|
2018-10-17 19:32:31 +01:00
|
|
|
description = ''
|
|
|
|
Livestreamer is CLI program that extracts streams from various
|
|
|
|
services and pipes them into a video player of choice.
|
|
|
|
'';
|
|
|
|
license = licenses.bsd2;
|
2019-12-05 07:29:48 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2018-10-17 19:32:31 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|