From a8e5143eee643dde02bc38c4466c599242c67e92 Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Tue, 30 Apr 2024 19:05:21 +0200 Subject: [PATCH] twitch-dl: harden and add maintainer pbsds --- pkgs/by-name/tw/twitch-dl/package.nix | 20 +++++++++++++++----- 1 file 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 318b3ecb3daa..6a7a89d17fe1 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"; }; }