Files
nixpkgs/pkgs/development/python-modules/comicon/default.nix
T
Robert Schütz 1a04744f74 treewide: remove superfluous disabled
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:

    pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
    for f in $(find -name '*.nix'); do
        grep -q "$pattern" "$f" || continue
        sed -i "/$pattern/d" "$f"
        if [ $(grep -c pythonOlder "$f") == 1 ]; then
            sed -i '/^\s*pythonOlder,\s*$/d' "$f"
        fi
        nixfmt "$f"
    done
2026-01-11 09:34:20 -08:00

59 lines
1.1 KiB
Nix

{
buildPythonPackage,
ebooklib,
fetchFromGitHub,
lib,
lxml,
nix-update-script,
pillow,
poetry-core,
pypdf,
python-slugify,
}:
buildPythonPackage rec {
pname = "comicon";
version = "1.5.0";
pyproject = true;
src = fetchFromGitHub {
owner = "potatoeggy";
repo = "comicon";
tag = "v${version}";
hash = "sha256-E5Jmk/dQcEuH7kq5RL80smHUuL/Sw0F1wk4V1/4sKSQ=";
};
build-system = [
poetry-core
];
dependencies = [
ebooklib
lxml
pillow
pypdf
python-slugify
];
pythonRelaxDeps = [
"ebooklib"
"lxml"
"pillow"
"pypdf"
];
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 ];
};
}