mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 19:21:04 +00:00
74 lines
1.6 KiB
Nix
74 lines
1.6 KiB
Nix
{ lib
|
|
, python3Packages
|
|
, fetchPypi
|
|
, substituteAll
|
|
, ffmpeg
|
|
}:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "streamlink";
|
|
version = "6.10.0";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-VI1fy8Oo4dXSn6IQoFlT+F9IyucLUqwuvkn5DoWRdSE=";
|
|
};
|
|
|
|
patches = [
|
|
(substituteAll {
|
|
src = ./ffmpeg-path.patch;
|
|
ffmpeg = lib.getExe ffmpeg;
|
|
})
|
|
];
|
|
|
|
nativeBuildInputs = with python3Packages; [
|
|
setuptools
|
|
];
|
|
|
|
nativeCheckInputs = with python3Packages; [
|
|
pytestCheckHook
|
|
mock
|
|
requests-mock
|
|
freezegun
|
|
pytest-asyncio
|
|
pytest-trio
|
|
];
|
|
|
|
disabledTests = [
|
|
# requires ffmpeg to be in PATH
|
|
"test_no_cache"
|
|
];
|
|
|
|
propagatedBuildInputs = with python3Packages; [
|
|
certifi
|
|
isodate
|
|
lxml
|
|
pycountry
|
|
pycryptodome
|
|
pysocks
|
|
requests
|
|
trio
|
|
trio-websocket
|
|
typing-extensions
|
|
urllib3
|
|
websocket-client
|
|
];
|
|
|
|
meta = {
|
|
changelog = "https://github.com/streamlink/streamlink/raw/${version}/CHANGELOG.md";
|
|
description = "CLI for extracting streams from various websites to video player of your choosing";
|
|
homepage = "https://streamlink.github.io/";
|
|
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.
|
|
'';
|
|
license = lib.licenses.bsd2;
|
|
mainProgram = "streamlink";
|
|
maintainers = with lib.maintainers; [ dezgeg zraexy DeeUnderscore ];
|
|
};
|
|
}
|