kcc: 5.5.1 -> 7.3.3
Co-authored-by: Arne Keller <arne.keller@posteo.de>
This commit is contained in:
co-authored by
Arne Keller
parent
3dac6fb361
commit
8afcd39eb9
@@ -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
|
||||
];
|
||||
};
|
||||
}
|
||||
@@ -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 { };
|
||||
|
||||
Reference in New Issue
Block a user