Files
nixpkgs/pkgs/development/python-modules/mandown/default.nix
2025-07-19 00:30:04 +00:00

72 lines
1.2 KiB
Nix

{
beautifulsoup4,
buildPythonPackage,
comicon,
feedparser,
fetchFromGitHub,
filetype,
lib,
lxml,
natsort,
nix-update-script,
pillow,
poetry-core,
pyside6,
python-slugify,
requests,
typer,
}:
buildPythonPackage rec {
pname = "mandown";
version = "1.12.2";
pyproject = true;
src = fetchFromGitHub {
owner = "potatoeggy";
repo = "mandown";
tag = "v${version}";
hash = "sha256-kbzh6qbex3PzdE53rx9Sxff1lhh1yYjehdEJ9Srq5gY=";
};
build-system = [
poetry-core
];
dependencies = [
beautifulsoup4
comicon
feedparser
filetype
lxml
natsort
pillow
python-slugify
requests
typer
];
pythonRelaxDeps = [
"beautifulsoup4"
"lxml"
"pillow"
"typer"
];
optional-dependencies = {
gui = [ pyside6 ];
};
pythonImportsCheck = [ "mandown" ];
passthru.updateScript = nix-update-script { };
meta = {
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 = lib.licenses.agpl3Only;
maintainers = with lib.maintainers; [ Scrumplex ];
};
}