2021-01-09 10:05:03 +00:00
|
|
|
{ lib
|
2021-04-26 19:14:03 +00:00
|
|
|
, python3
|
2021-01-09 10:05:03 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, rtmpdump
|
2021-04-26 19:14:03 +00:00
|
|
|
, ffmpeg
|
2021-01-09 10:05:03 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-04-26 19:14:03 +00:00
|
|
|
python3.pkgs.buildPythonApplication rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "streamlink";
|
2021-07-21 07:28:18 +00:00
|
|
|
version = "2.2.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "streamlink";
|
|
|
|
repo = "streamlink";
|
|
|
|
rev = version;
|
2021-07-21 07:28:18 +00:00
|
|
|
sha256 = "1323v1pavmbb2vk3djdkxd8j6i3yrcgrkyl2d7xwkb7nwlla1x1v";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-04-26 19:14:03 +00:00
|
|
|
checkInputs = with python3.pkgs; [
|
|
|
|
pytestCheckHook
|
2021-01-09 10:05:03 +00:00
|
|
|
mock
|
|
|
|
requests-mock
|
|
|
|
freezegun
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-04-26 19:14:03 +00:00
|
|
|
propagatedBuildInputs = (with python3.pkgs; [
|
2021-01-09 10:05:03 +00:00
|
|
|
pycryptodome
|
|
|
|
requests
|
|
|
|
iso-639
|
|
|
|
iso3166
|
2021-06-28 23:13:55 +00:00
|
|
|
websocket-client
|
2021-01-09 10:05:03 +00:00
|
|
|
isodate
|
|
|
|
]) ++ [
|
|
|
|
rtmpdump
|
2021-04-26 19:14:03 +00:00
|
|
|
ffmpeg
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
"test_plugin_not_in_removed_list"
|
2021-01-09 10:05:03 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-09 10:05:03 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/streamlink/streamlink";
|
|
|
|
description = "CLI for extracting streams from various websites to video player of your choosing";
|
|
|
|
longDescription = ''
|
2021-07-21 07:28:18 +00:00
|
|
|
Streamlink is a CLI utility that pipes videos from online
|
2020-04-24 23:36:52 +00:00
|
|
|
streaming services to a variety of video players such as VLC, or
|
|
|
|
alternatively, a browser.
|
|
|
|
|
|
|
|
Streamlink is a fork of the livestreamer project.
|
|
|
|
'';
|
|
|
|
license = licenses.bsd2;
|
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
2021-07-21 07:28:18 +00:00
|
|
|
maintainers = with maintainers; [ dezgeg zraexy DeeUnderscore ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|