Files
nixpkgs/pkgs/development/python-modules/comicon/default.nix
T
2025-01-04 00:19:17 +01:00

56 lines
1.0 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
pythonOlder,
ebooklib,
lxml,
pillow,
pypdf,
python-slugify,
}:
buildPythonPackage rec {
pname = "comicon";
version = "1.2.1";
pyproject = true;
disabled = pythonOlder "3.10";
src = fetchFromGitHub {
owner = "potatoeggy";
repo = "comicon";
tag = "v${version}";
hash = "sha256-FvAgcpYvUTTE24jJB2ZxSNcNjAIyUBa3BaysjWXurtg=";
};
nativeBuildInputs = [
poetry-core
];
pythonRelaxDeps = [
"pillow"
"pypdf"
];
propagatedBuildInputs = [
ebooklib
lxml
pillow
pypdf
python-slugify
];
doCheck = false; # test artifacts are not public
pythonImportsCheck = [ "comicon" ];
meta = with lib; {
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 = licenses.agpl3Only;
maintainers = with maintainers; [ Scrumplex ];
};
}