diff options
author | Peder Bergebakken Sundt <pbsds@hotmail.com> | 2024-04-30 19:05:21 +0200 |
---|---|---|
committer | Peder Bergebakken Sundt <pbsds@hotmail.com> | 2024-04-30 19:09:42 +0200 |
commit | a8e5143eee643dde02bc38c4466c599242c67e92 (patch) | |
tree | 249c77d5f42b8f08913ab12e7b7e74b852743474 /pkgs/by-name/tw | |
parent | 302db0aa68ff1661e18b4955045d90e5a01c0c05 (diff) |
twitch-dl: harden and add maintainer pbsds
Diffstat (limited to 'pkgs/by-name/tw')
-rw-r--r-- | pkgs/by-name/tw/twitch-dl/package.nix | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/pkgs/by-name/tw/twitch-dl/package.nix b/pkgs/by-name/tw/twitch-dl/package.nix index 318b3ecb3daaf..6a7a89d17fe19 100644 --- a/pkgs/by-name/tw/twitch-dl/package.nix +++ b/pkgs/by-name/tw/twitch-dl/package.nix @@ -17,14 +17,14 @@ python3Packages.buildPythonApplication rec { hash = "sha256-Os27uqH3MA3v9+8WzfL5KIEUewAzf8JUyRtsWSzw81o="; }; - postPatch = '' - substituteInPlace pyproject.toml \ - --replace-fail 'm3u8>=1.0.0,<4.0.0' 'm3u8>=1.0.0' - ''; + pythonRelaxDeps = [ + "m3u8" + ]; nativeBuildInputs = [ python3Packages.setuptools python3Packages.setuptools-scm + python3Packages.pythonRelaxDepsHook installShellFiles scdoc ]; @@ -46,6 +46,16 @@ python3Packages.buildPythonApplication rec { pythonImportsCheck = [ "twitchdl" + "twitchdl.cli" + "twitchdl.download" + "twitchdl.entities" + "twitchdl.http" + "twitchdl.output" + "twitchdl.playlists" + "twitchdl.progress" + "twitchdl.twitch" + "twitchdl.utils" + "twitchdl.commands" ]; postInstall = '' @@ -58,7 +68,7 @@ python3Packages.buildPythonApplication rec { homepage = "https://github.com/ihabunek/twitch-dl"; changelog = "https://github.com/ihabunek/twitch-dl/blob/${src.rev}/CHANGELOG.md"; license = licenses.gpl3Only; - maintainers = with maintainers; [ ]; + maintainers = with maintainers; [ pbsds ]; mainProgram = "twitch-dl"; }; } |