Merge pull request #178028 from alexshpilkin/fix-calibre-chm

Fix CHM format support in Calibre
This commit is contained in:
Anderson Torres 2022-06-17 18:19:23 -03:00 committed by GitHub
commit fe1afe8da8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 30 additions and 2 deletions

View File

@ -16,7 +16,6 @@
, hunspell
, hyphen
, unrarSupport ? false
, chmlib
, python3Packages
, libusb1
, libmtp
@ -66,7 +65,6 @@ mkDerivation rec {
nativeBuildInputs = [ pkg-config qmake removeReferencesTo wrapGAppsHook ];
buildInputs = [
chmlib
fontconfig
hunspell
hyphen
@ -102,6 +100,7 @@ mkDerivation rec {
msgpack
netifaces
pillow
pychm
pyqt-builder
pyqt5
python

View File

@ -0,0 +1,27 @@
{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, chmlib
}:
buildPythonPackage rec {
pname = "pychm";
version = "0.8.6";
src = fetchPypi {
inherit pname version;
sha256 = "0wpn9ijlsmrpyiwg3drmgz4dms1i1i347adgqw37bkrh3vn6yq16";
};
buildInputs = [ chmlib ];
pythonImportsCheck = [ "chm" ];
meta = with lib; {
description = "Library to manipulate Microsoft HTML Help (CHM) files";
homepage = "https://github.com/dottedmag/pychm";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ alexshpilkin ];
};
}

View File

@ -7149,6 +7149,8 @@ in {
pychef = callPackage ../development/python-modules/pychef { };
pychm = callPackage ../development/python-modules/pychm { };
PyChromecast = callPackage ../development/python-modules/pychromecast { };
pyclimacell = callPackage ../development/python-modules/pyclimacell { };