Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kindle Comic Converter (kcc) : 5.5.1 -> 6.1.0 #323382

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,13 @@
githubId = 1773511;
name = "Adrien Devresse";
};
adfaure = {
email = "[email protected]";
matrix = "@adfaure:matrix.org";
github = "adfaure";
githubId = 8026586;
name = "Adrien Faure";
};
adisbladis = {
email = "[email protected]";
matrix = "@adis:blad.is";
Expand Down
28 changes: 21 additions & 7 deletions pkgs/applications/graphics/kcc/default.nix
Original file line number Diff line number Diff line change
@@ -1,27 +1,41 @@
{ lib
, mkDerivationWith
, python3
, python3Packages
, fetchPypi
, fetchFromGitHub
, p7zip
, archiveSupport ? true
, cmake
, mozjpeg
}:

mkDerivationWith python3Packages.buildPythonApplication rec {
pname = "kcc";
version = "5.5.1";
version = "6.1.0";

src = fetchPypi {
inherit version;
pname = "KindleComicConverter";
sha256 = "5dbee5dc5ee06a07316ae5ebaf21ffa1970094dbae5985ad735e2807ef112644";
src = fetchFromGitHub {
owner = "ciromattia";
repo = "${pname}";
rev = "v${version}";
hash = "sha256-CU068e7fLPn0hW+yfm1qRp8bX8/jvAYz2g715CIHa/Q=";
};

nativeBuildInputs = with python3Packages; [
pip
];

propagatedBuildInputs = with python3Packages ; [
p7zip
pillow
pyqt5
psutil
python-slugify
raven
requests
natsort
mozjpeg_lossless_optimization
distro
pyside6
];

qtWrapperArgs = lib.optionals archiveSupport [ "--prefix" "PATH" ":" "${ lib.makeBinPath [ p7zip ] }" ];
Expand All @@ -34,6 +48,6 @@ mkDerivationWith python3Packages.buildPythonApplication rec {
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";
license = licenses.isc;
maintainers = with maintainers; [ dawidsowa ];
maintainers = with maintainers; [ dawidsowa adfaure ];
};
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{ lib
, python3Packages
, fetchPypi
, mailman
, nixosTests
, buildPythonPackage
, mozjpeg
, cmake
}:
buildPythonPackage rec {
pname = "mozjpeg_lossless_optimization";
version = "1.1.3";

src = fetchPypi {
inherit version;
pname = "mozjpeg-lossless-optimization";
sha256 = "sha256-cl2Ydy6UP8oYsIAcuU5kXEd/9S5WrQsnvdt23fCRyj4=";
};

# This package needs cmake, but it is not the default builder
dontUseCmakeConfigure = true;

nativeBuildInputs = [ mozjpeg cmake ];
propagatedBuildInputs = [ python3Packages.cffi ];

meta = with lib; {
description = "Python library to optimize JPEGs losslessly using MozJPEG ";
homepage = "https://github.com/wanadev/mozjpeg-lossless-optimization";
license = licenses.bsd3;
maintainers = with maintainers; [ adfaure ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7813,6 +7813,8 @@ 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 { };
Expand Down