Files
nixpkgs/pkgs/development/python-modules/mandown/default.nix
T
Sefa Eyeoglu 486ec84d3d python3Packages.mandown: 1.8.0 -> 1.8.2
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2024-05-15 09:34:55 +02:00

73 lines
1.3 KiB
Nix

{ 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 ];
};
}