Commit 8afcd39e authored by Adrien Faure's avatar Adrien Faure
Browse files

kcc: 5.5.1 -> 7.3.3

parent 3dac6fb3
Loading
Loading
Loading
Loading
+60 −0
Original line number Diff line number Diff line
{
  stdenv,
  lib,
  qt6,
  fetchFromGitHub,
  p7zip,
  versionCheckHook,
  nix-update-script,
  python3,
  archiveSupport ? true,
}:
python3.pkgs.buildPythonApplication rec {
  pname = "kcc";
  version = "7.3.3";

  src = fetchFromGitHub {
    owner = "ciromattia";
    repo = "kcc";
    tag = "v${version}";
    hash = "sha256-6zHUV4s1bOdARsTwNRxFM+s0p+6FLJhqJ9qG5BaBgas=";
  };

  nativeBuildInputs = [ qt6.wrapQtAppsHook ];

  buildInputs = [ qt6.qtbase ] ++ lib.optionals stdenv.hostPlatform.isLinux [ qt6.qtwayland ];
  propagatedBuildInputs = with python3.pkgs; [
    packaging
    pillow
    psutil
    python-slugify
    raven
    requests
    natsort
    mozjpeg_lossless_optimization
    distro
    pyside6
    numpy
  ];

  qtWrapperArgs = lib.optionals archiveSupport [ ''--prefix PATH : ${lib.makeBinPath [ p7zip ]}'' ];

  nativeInstallCheckInputs = [ versionCheckHook ];
  versionCheckProgram = "${placeholder "out"}/bin/kcc-c2e";

  passthru = {
    updateScript = nix-update-script { };
  };

  meta = {
    description = "Python app to convert comic/manga files or folders to EPUB, Panel View MOBI or E-Ink optimized CBZ";
    homepage = "https://kcc.iosphe.re";
    mainProgram = "kcc";
    changelog = "https://github.com/ciromattia/kcc/releases/tag/v${version}";
    license = lib.licenses.isc;
    maintainers = with lib.maintainers; [
      dawidsowa
      adfaure
    ];
  };
}
+0 −2
Original line number Diff line number Diff line
@@ -7420,8 +7420,6 @@ with pkgs;
  jenkins-job-builder = with python3Packages; toPythonApplication jenkins-job-builder;
  kcc = callPackage ../applications/graphics/kcc { };
  kustomize = callPackage ../development/tools/kustomize { };
  kustomize_3 = callPackage ../development/tools/kustomize/3.nix { };