{ lib , buildPythonPackage , fetchFromGitHub , poetry-core , pythonRelaxDepsHook , beautifulsoup4 , comicon , feedparser , filetype , lxml , natsort , nix-update-script , pillow , python-slugify , requests , typer , pyside6 }: buildPythonPackage rec { pname = "mandown"; version = "1.8.2"; pyproject = true; src = fetchFromGitHub { owner = "potatoeggy"; repo = "mandown"; rev = "refs/tags/v${version}"; hash = "sha256-DSbxWff5pY7tjB9aXY8/rQJzCQyDN2+OrmP10uEeXWM="; }; nativeBuildInputs = [ poetry-core pythonRelaxDepsHook ]; pythonRelaxDeps = [ "lxml" "pillow" "typer" ]; propagatedBuildInputs = [ beautifulsoup4 comicon feedparser filetype lxml natsort pillow python-slugify requests typer ]; passthru.optional-dependencies = { gui = [ pyside6 ]; updateScript = nix-update-script { }; }; pythonImportsCheck = [ "mandown" ]; meta = with lib; { changelog = "https://github.com/potatoeggy/mandown/releases/tag/v${version}"; description = "Comic/manga/webtoon downloader and CBZ/EPUB/MOBI/PDF converter"; homepage = "https://github.com/potatoeggy/mandown"; license = licenses.agpl3Only; maintainers = with maintainers; [ Scrumplex ]; }; }