Sefa Eyeoglu c59e3ea108
python312Packages.comicon: refactor
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2025-01-19 13:53:42 +01:00

58 lines
1.1 KiB
Nix

{
buildPythonPackage,
ebooklib,
fetchFromGitHub,
lib,
lxml,
nix-update-script,
pillow,
poetry-core,
pypdf,
python-slugify,
pythonOlder,
}:
buildPythonPackage rec {
pname = "comicon";
version = "1.4.0";
pyproject = true;
disabled = pythonOlder "3.10";
src = fetchFromGitHub {
owner = "potatoeggy";
repo = "comicon";
tag = "v${version}";
hash = "sha256-jZ/ZhSFg0ZPTYI10s8Cn1s9UZRFFnuLjS96lnUFVekQ=";
};
build-system = [
poetry-core
];
dependencies = [
ebooklib
lxml
pillow
pypdf
python-slugify
];
pythonRelaxDeps = [
"pillow"
];
doCheck = false; # test artifacts are not public
pythonImportsCheck = [ "comicon" ];
passthru.updateScript = nix-update-script { };
meta = {
changelog = "https://github.com/potatoeggy/comicon/releases/tag/v${version}";
description = "Lightweight comic converter library between CBZ, PDF, and EPUB";
homepage = "https://github.com/potatoeggy/comicon";
license = lib.licenses.agpl3Only;
maintainers = with lib.maintainers; [ Scrumplex ];
};
}