Kindle Comic Converter (kcc) : 5.5.1 -> 7.3.3 (#323382)
This commit is contained in:
@@ -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
|
||||
];
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
{
|
||||
lib,
|
||||
python3Packages,
|
||||
fetchFromGitHub,
|
||||
buildPythonPackage,
|
||||
mozjpeg,
|
||||
pytestCheckHook,
|
||||
setuptools,
|
||||
cmake,
|
||||
nix-update-script,
|
||||
cffi,
|
||||
}:
|
||||
buildPythonPackage rec {
|
||||
pname = "mozjpeg_lossless_optimization";
|
||||
version = "1.1.3";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "wanadev";
|
||||
repo = "mozjpeg-lossless-optimization";
|
||||
# https://github.com/NixOS/nixpkgs/issues/26302
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-OKNt9XtfZ6hhRJN1Asn1T2dVjyXKQAsnFvXKYnrRZ98=";
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
|
||||
# This package needs cmake, but it is not the default builder
|
||||
dontUseCmakeConfigure = true;
|
||||
|
||||
buildInputs = [ mozjpeg ];
|
||||
nativeBuildInputs = [ cmake ];
|
||||
propagatedBuildInputs = [ cffi ];
|
||||
|
||||
# https://github.com/NixOS/nixpkgs/issues/255262
|
||||
preCheck = ''
|
||||
rm -r mozjpeg_lossless_optimization
|
||||
'';
|
||||
|
||||
build-system = [ setuptools ];
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
|
||||
passthru = {
|
||||
updateScript = nix-update-script { };
|
||||
};
|
||||
|
||||
meta = {
|
||||
description = "Python library to optimize JPEGs losslessly using MozJPEG";
|
||||
homepage = "https://github.com/wanadev/mozjpeg-lossless-optimization";
|
||||
changelog = "https://github.com/wanadev/mozjpeg-lossless-optimization/releases/tag/v${version}";
|
||||
license = lib.licenses.bsd3;
|
||||
maintainers = [ lib.maintainers.adfaure ];
|
||||
};
|
||||
}
|
||||
@@ -7407,8 +7407,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 { };
|
||||
|
||||
@@ -9316,6 +9316,10 @@ self: super: with self; {
|
||||
|
||||
mozilla-django-oidc = callPackage ../development/python-modules/mozilla-django-oidc { };
|
||||
|
||||
mozjpeg_lossless_optimization =
|
||||
callPackage ../development/python-modules/mozjpeg_lossless_optimization
|
||||
{ };
|
||||
|
||||
mpd2 = callPackage ../development/python-modules/mpd2 { };
|
||||
|
||||
mpegdash = callPackage ../development/python-modules/mpegdash { };
|
||||
|
||||
Reference in New Issue
Block a user