twitch-dl: harden and add maintainer pbsds

This commit is contained in:
Peder Bergebakken Sundt 2024-04-30 19:05:21 +02:00
parent 302db0aa68
commit a8e5143eee

View File

@ -17,14 +17,14 @@ python3Packages.buildPythonApplication rec {
hash = "sha256-Os27uqH3MA3v9+8WzfL5KIEUewAzf8JUyRtsWSzw81o="; hash = "sha256-Os27uqH3MA3v9+8WzfL5KIEUewAzf8JUyRtsWSzw81o=";
}; };
postPatch = '' pythonRelaxDeps = [
substituteInPlace pyproject.toml \ "m3u8"
--replace-fail 'm3u8>=1.0.0,<4.0.0' 'm3u8>=1.0.0' ];
'';
nativeBuildInputs = [ nativeBuildInputs = [
python3Packages.setuptools python3Packages.setuptools
python3Packages.setuptools-scm python3Packages.setuptools-scm
python3Packages.pythonRelaxDepsHook
installShellFiles installShellFiles
scdoc scdoc
]; ];
@ -46,6 +46,16 @@ python3Packages.buildPythonApplication rec {
pythonImportsCheck = [ pythonImportsCheck = [
"twitchdl" "twitchdl"
"twitchdl.cli"
"twitchdl.download"
"twitchdl.entities"
"twitchdl.http"
"twitchdl.output"
"twitchdl.playlists"
"twitchdl.progress"
"twitchdl.twitch"
"twitchdl.utils"
"twitchdl.commands"
]; ];
postInstall = '' postInstall = ''
@ -58,7 +68,7 @@ python3Packages.buildPythonApplication rec {
homepage = "https://github.com/ihabunek/twitch-dl"; homepage = "https://github.com/ihabunek/twitch-dl";
changelog = "https://github.com/ihabunek/twitch-dl/blob/${src.rev}/CHANGELOG.md"; changelog = "https://github.com/ihabunek/twitch-dl/blob/${src.rev}/CHANGELOG.md";
license = licenses.gpl3Only; license = licenses.gpl3Only;
maintainers = with maintainers; [ ]; maintainers = with maintainers; [ pbsds ];
mainProgram = "twitch-dl"; mainProgram = "twitch-dl";
}; };
} }