From 8afcd39eb94bd4b3ceb360c1ca0fc94265a4d596 Mon Sep 17 00:00:00 2001 From: Adrien Faure Date: Mon, 14 Apr 2025 09:42:08 +0200 Subject: [PATCH] kcc: 5.5.1 -> 7.3.3 Co-authored-by: Arne Keller --- pkgs/by-name/kc/kcc/package.nix | 60 +++++++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 -- 2 files changed, 60 insertions(+), 2 deletions(-) create mode 100644 pkgs/by-name/kc/kcc/package.nix diff --git a/pkgs/by-name/kc/kcc/package.nix b/pkgs/by-name/kc/kcc/package.nix new file mode 100644 index 000000000000..f6818e87feb2 --- /dev/null +++ b/pkgs/by-name/kc/kcc/package.nix @@ -0,0 +1,60 @@ +{ + 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 + ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index fe4017955e35..893e9bcde1af 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -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 { };