depot/third_party/nixpkgs/pkgs/applications/video/streamlink/default.nix
Default email 0eeabdeb66 Project import generated by Copybara.
GitOrigin-RevId: c07b471b52be8fbc49a7dc194e9b37a6e19ee04d
2022-01-24 21:21:06 -06:00

50 lines
1.2 KiB
Nix

{ lib
, python3Packages
, ffmpeg
, fetchpatch
}:
python3Packages.buildPythonApplication rec {
pname = "streamlink";
version = "3.1.0";
src = python3Packages.fetchPypi {
inherit pname version;
sha256 = "sha256-T2M0vg+BYIdr21CcdrrBf7bVVlZU+tKJWG2xfBMoMlg=";
};
checkInputs = with python3Packages; [
pytestCheckHook
mock
requests-mock
freezegun
];
propagatedBuildInputs = (with python3Packages; [
isodate
lxml
pycountry
pycryptodome
pysocks
requests
websocket-client
]) ++ [
ffmpeg
];
meta = with lib; {
homepage = "https://streamlink.github.io/";
description = "CLI for extracting streams from various websites to video player of your choosing";
longDescription = ''
Streamlink is a CLI utility that pipes videos from online
streaming services to a variety of video players such as VLC, or
alternatively, a browser.
Streamlink is a fork of the livestreamer project.
'';
changelog = "https://github.com/streamlink/streamlink/raw/${version}/CHANGELOG.md";
license = licenses.bsd2;
platforms = platforms.linux ++ platforms.darwin;
maintainers = with maintainers; [ dezgeg zraexy DeeUnderscore ];
};
}