nixpkgs/pkgs/development/python-modules/comicapi/default.nix
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

81 lines
1.5 KiB
Nix

{
lib,
stdenv,
buildPythonPackage,
fetchFromGitHub,
importlib-metadata,
natsort,
pillow,
py7zr,
pycountry,
pyicu,
pytestCheckHook,
rapidfuzz,
rarfile,
setuptools,
setuptools-scm,
text2digits,
wheel,
wordninja,
}:
buildPythonPackage rec {
pname = "comicapi";
version = "3.2.0";
pyproject = true;
src = fetchFromGitHub {
owner = "comictagger";
repo = "comicapi";
rev = "2bf8332114e49add0bbc0fd3d85bdbba02de3d1a";
hash = "sha256-Cd3ILy/4PqWUj1Uu9of9gCpdVp2R6CXjPOuSXgrB894=";
};
build-system = [
setuptools
setuptools-scm
wheel
];
dependencies = [
importlib-metadata
natsort
pillow
pycountry
rapidfuzz
text2digits
wordninja
];
optional-dependencies = {
_7z = [ py7zr ];
all = [
py7zr
rarfile
]
++ lib.optional (stdenv.hostPlatform.isDarwin || stdenv.hostPlatform.isLinux) pyicu;
cbr = [ rarfile ];
icu = lib.optional (stdenv.hostPlatform.isDarwin || stdenv.hostPlatform.isLinux) pyicu;
};
nativeCheckInputs = [ pytestCheckHook ] ++ lib.concatAttrValues optional-dependencies;
pythonRelaxDeps = [ "pycountry" ];
disabledTests = [
# AssertionError
"test_copy_from_archive"
];
pythonImportsCheck = [ "comicapi" ];
meta = {
description = "Comic archive (cbr/cbz/cbt) and metadata utilities";
homepage = "https://github.com/comictagger/comicapi";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ getchoo ];
};
}