Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 48 lines 1.0 kB view raw
1{ 2 lib, 3 python3Packages, 4 fetchPypi, 5 libsForQt5, 6 p7zip, 7 archiveSupport ? true, 8}: 9 10python3Packages.buildPythonApplication rec { 11 pname = "kcc"; 12 version = "5.5.1"; 13 format = "setuptools"; 14 15 src = fetchPypi { 16 inherit version; 17 pname = "KindleComicConverter"; 18 sha256 = "5dbee5dc5ee06a07316ae5ebaf21ffa1970094dbae5985ad735e2807ef112644"; 19 }; 20 21 nativeBuildInputs = [ libsForQt5.wrapQtAppsHook ]; 22 23 propagatedBuildInputs = with python3Packages; [ 24 pillow 25 pyqt5 26 psutil 27 python-slugify 28 raven 29 ]; 30 31 qtWrapperArgs = lib.optionals archiveSupport [ 32 "--prefix" 33 "PATH" 34 ":" 35 "${lib.makeBinPath [ p7zip ]}" 36 ]; 37 38 postFixup = '' 39 wrapProgram $out/bin/kcc "''${qtWrapperArgs[@]}" 40 ''; 41 42 meta = with lib; { 43 description = "Python app to convert comic/manga files or folders to EPUB, Panel View MOBI or E-Ink optimized CBZ"; 44 homepage = "https://github.com/ciromattia/kcc"; 45 license = licenses.isc; 46 maintainers = with maintainers; [ dawidsowa ]; 47 }; 48}