mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 07:23:20 +00:00
Merge pull request #178028 from alexshpilkin/fix-calibre-chm
Fix CHM format support in Calibre
This commit is contained in:
commit
fe1afe8da8
@ -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
|
||||
|
27
pkgs/development/python-modules/pychm/default.nix
Normal file
27
pkgs/development/python-modules/pychm/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user