diff options
author | Mario Rodas <marsam@users.noreply.github.com> | 2024-04-15 04:20:00 +0000 |
---|---|---|
committer | Mario Rodas <marsam@users.noreply.github.com> | 2024-04-15 04:20:00 +0000 |
commit | 5385c6eec1f73abfa9f0c48719df0dfe7440f218 (patch) | |
tree | 7bba9ddb1fb55b66b39e22d73f1e28896d170842 /pkgs/by-name/tw | |
parent | 86be7391aa273f5f652dd4d2d9595d5e643eaeca (diff) |
twitch-dl: 2.1.4 -> 2.2.0
Diff: https://github.com/ihabunek/twitch-dl/compare/refs/tags/2.1.4...2.2.0 Changelog: https://github.com/ihabunek/twitch-dl/blob/refs/tags/2.2.0/CHANGELOG.md
Diffstat (limited to 'pkgs/by-name/tw')
-rw-r--r-- | pkgs/by-name/tw/twitch-dl/package.nix | 24 |
1 files changed, 17 insertions, 7 deletions
diff --git a/pkgs/by-name/tw/twitch-dl/package.nix b/pkgs/by-name/tw/twitch-dl/package.nix index 15a3e262e5752..29340a7f06c66 100644 --- a/pkgs/by-name/tw/twitch-dl/package.nix +++ b/pkgs/by-name/tw/twitch-dl/package.nix @@ -7,28 +7,38 @@ python3Packages.buildPythonApplication rec { pname = "twitch-dl"; - version = "2.1.4"; - - format = "setuptools"; + version = "2.2.0"; + pyproject = true; src = fetchFromGitHub { owner = "ihabunek"; repo = "twitch-dl"; rev = "refs/tags/${version}"; - hash = "sha256-0mITsNQQWG6lVQSxnDdU4ta548AR9q+zs/E96uwtG/U="; + hash = "sha256-H2SxZgEjVdj/GRguJ2v/WWUrh0VTrwFV9mZVn/EYyPg="; }; - nativeCheckInputs = [ + postPatch = '' + substituteInPlace pyproject.toml \ + --replace-fail 'm3u8>=1.0.0,<4.0.0' 'm3u8>=1.0.0' + ''; + + nativeBuildInputs = [ + python3Packages.setuptools + python3Packages.setuptools-scm installShellFiles - python3Packages.pytestCheckHook scdoc ]; propagatedBuildInputs = with python3Packages; [ + click httpx m3u8 ]; + nativeCheckInputs = [ + python3Packages.pytestCheckHook + ]; + disabledTestPaths = [ # Requires network access "tests/test_api.py" @@ -46,7 +56,7 @@ python3Packages.buildPythonApplication rec { 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"; + changelog = "https://github.com/ihabunek/twitch-dl/blob/${src.rev}/CHANGELOG.md"; license = licenses.gpl3Only; maintainers = with maintainers; [ marsam ]; mainProgram = "twitch-dl"; |