Merge pull request #231733 from marsam/init-twitch-dl

twitch-dl: init at 2.1.3
This commit is contained in:
Mario Rodas 2023-05-14 15:29:50 -05:00 committed by GitHub
commit e67a364c84
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 56 additions and 0 deletions

View File

@ -0,0 +1,54 @@
{ lib
, fetchFromGitHub
, python3Packages
, ffmpeg
, installShellFiles
, scdoc
}:
python3Packages.buildPythonApplication rec {
pname = "twitch-dl";
version = "2.1.3";
format = "setuptools";
src = fetchFromGitHub {
owner = "ihabunek";
repo = "twitch-dl";
rev = "refs/tags/${version}";
hash = "sha256-uxIBt/mGmld8bxUWQvAspaX39EVfguX5qDgJ/ecz3hM=";
};
nativeCheckInputs = [
installShellFiles
python3Packages.pytestCheckHook
scdoc
];
propagatedBuildInputs = with python3Packages; [
httpx
m3u8
];
disabledTestPaths = [
# Requires network access
"tests/test_api.py"
];
pythonImportsCheck = [
"twitchdl"
];
postInstall = ''
scdoc < twitch-dl.1.scd > twitch-dl.1
installManPage twitch-dl.1
'';
meta = with lib; {
description = "CLI tool for downloading videos from Twitch";
homepage = "https://github.com/ihabunek/twitch-dl";
changelog = "https://github.com/ihabunek/twitch-dl/blob/${version}/CHANGELOG.md";
license = licenses.gpl3Only;
maintainers = with maintainers; [ marsam ];
};
}

View File

@ -13179,6 +13179,8 @@ with pkgs;
twitch-chat-downloader = python3Packages.callPackage ../applications/misc/twitch-chat-downloader { };
twitch-dl = callPackage ../tools/misc/twitch-dl { };
twitterBootstrap = callPackage ../development/web/twitter-bootstrap { };
twspace-crawler = callPackage ../tools/misc/twspace-crawler { };