2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
poetry-core,
|
|
|
|
pythonOlder,
|
|
|
|
ebooklib,
|
|
|
|
lxml,
|
|
|
|
pillow,
|
|
|
|
pypdf,
|
|
|
|
python-slugify,
|
2023-10-09 19:29:22 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "comicon";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "1.2.0";
|
2024-02-29 20:09:43 +00:00
|
|
|
pyproject = true;
|
2024-05-15 15:35:15 +00:00
|
|
|
disabled = pythonOlder "3.10";
|
2023-10-09 19:29:22 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "potatoeggy";
|
|
|
|
repo = "comicon";
|
2024-07-27 06:49:29 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-oiEzZRgyG/RQCo2zSTqwlOhkwz76lSImR0ZtSlIUp4Y=";
|
2023-10-09 19:29:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
2024-02-29 20:09:43 +00:00
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonRelaxDeps = [ "pypdf" ];
|
2023-10-09 19:29:22 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
ebooklib
|
|
|
|
lxml
|
|
|
|
pillow
|
|
|
|
pypdf
|
2024-06-05 15:53:02 +00:00
|
|
|
python-slugify
|
2023-10-09 19:29:22 +00:00
|
|
|
];
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
doCheck = false; # test artifacts are not public
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
pythonImportsCheck = [ "comicon" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-02-29 20:09:43 +00:00
|
|
|
changelog = "https://github.com/potatoeggy/comicon/releases/tag/v${version}";
|
2023-10-09 19:29:22 +00:00
|
|
|
description = "Lightweight comic converter library between CBZ, PDF, and EPUB";
|
|
|
|
homepage = "https://github.com/potatoeggy/comicon";
|
|
|
|
license = licenses.agpl3Only;
|
|
|
|
maintainers = with maintainers; [ Scrumplex ];
|
|
|
|
};
|
|
|
|
}
|