2023-10-09 19:29:22 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, poetry-core
|
2024-02-29 20:09:43 +00:00
|
|
|
, pythonRelaxDepsHook
|
2023-10-09 19:29:22 +00:00
|
|
|
, beautifulsoup4
|
|
|
|
, comicon
|
|
|
|
, feedparser
|
|
|
|
, filetype
|
|
|
|
, lxml
|
|
|
|
, natsort
|
|
|
|
, pillow
|
|
|
|
, python-slugify
|
|
|
|
, requests
|
|
|
|
, typer
|
|
|
|
, pyside6
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "mandown";
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "1.7.0";
|
2024-02-29 20:09:43 +00:00
|
|
|
pyproject = true;
|
2023-10-09 19:29:22 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "potatoeggy";
|
|
|
|
repo = "mandown";
|
2023-11-16 04:20:00 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-01-13 08:15:51 +00:00
|
|
|
hash = "sha256-oHa7/2fv+BG5KIKFIICYBqddub5SokDvAI6frbVwGSo=";
|
2023-10-09 19:29:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
2024-02-29 20:09:43 +00:00
|
|
|
pythonRelaxDepsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonRelaxDeps = [
|
|
|
|
"pillow"
|
|
|
|
"typer"
|
2023-10-09 19:29:22 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
beautifulsoup4
|
|
|
|
comicon
|
|
|
|
feedparser
|
|
|
|
filetype
|
|
|
|
lxml
|
|
|
|
natsort
|
|
|
|
pillow
|
|
|
|
python-slugify
|
|
|
|
requests
|
|
|
|
typer
|
|
|
|
];
|
|
|
|
|
|
|
|
passthru.optional-dependencies = {
|
|
|
|
gui = [
|
|
|
|
pyside6
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "mandown" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-02-29 20:09:43 +00:00
|
|
|
changelog = "https://github.com/potatoeggy/mandown/releases/tag/v${version}";
|
2023-10-09 19:29:22 +00:00
|
|
|
description = "Comic/manga/webtoon downloader and CBZ/EPUB/MOBI/PDF converter";
|
|
|
|
homepage = "https://github.com/potatoeggy/mandown";
|
|
|
|
license = licenses.agpl3Only;
|
|
|
|
maintainers = with maintainers; [ Scrumplex ];
|
|
|
|
};
|
|
|
|
}
|