Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

pythonPackages.poppler-qt5: init at 0.24.2

related to #32883

(cherry picked from commit 8446cd9c3202f7016d14af25ea4a3a6e58ce32b4)

authored by Maximilian Bosch and committed by Robert Schütz 29a6d29e d798fa02

+59
+42
pkgs/development/python-modules/poppler-qt5/default.nix
··· 1 + { buildPythonPackage, fetchPypi, stdenv, sip, qtbase, pyqt5, poppler, pkgconfig, fetchpatch 2 + , python, substituteAll 3 + }: 4 + 5 + buildPythonPackage rec { 6 + pname = "python-poppler-qt5"; 7 + version = "0.24.2"; 8 + 9 + src = fetchPypi { 10 + inherit pname version; 11 + sha256 = "0l69llw1fzwz8y90q0qp9q5pifbrqjjbwii7di54dwghw5fc6w1r"; 12 + }; 13 + 14 + patches = [ 15 + (substituteAll { 16 + src = ./poppler-include-dir.patch; 17 + poppler_include_dir = "${poppler.dev}/include/poppler"; 18 + }) 19 + (fetchpatch { 20 + url = "https://github.com/wbsoft/python-poppler-qt5/commit/faf4d1308f89560b0d849671226e3080dfc72e79.patch"; 21 + sha256 = "18krhh6wzsnpxzlzv02nginb1vralla8ai24zqk10nc4mj6fkj86"; 22 + }) 23 + ]; 24 + 25 + setupPyBuildFlags = [ 26 + "--pyqt-sip-dir ${pyqt5}/share/sip/PyQt5" 27 + "--qt-include-dir ${qtbase.dev}/include" 28 + ]; 29 + 30 + buildInputs = [ qtbase.dev poppler ]; 31 + nativeBuildInputs = [ pkgconfig ]; 32 + propagatedBuildInputs = [ sip pyqt5.dev ]; 33 + 34 + # no tests, just bindings for `poppler_qt5` 35 + doCheck = false; 36 + 37 + meta = with stdenv.lib; { 38 + homepage = https://github.com/wbsoft/python-poppler-qt5; 39 + license = licenses.gpl2; 40 + maintainers = with maintainers; [ ma27 ]; 41 + }; 42 + }
+12
pkgs/development/python-modules/poppler-qt5/poppler-include-dir.patch
··· 1 + diff --git a/setup.py b/setup.py 2 + index 59a75b0..0a73268 100644 3 + --- a/setup.py 4 + +++ b/setup.py 5 + @@ -169,6 +169,7 @@ class build_ext(build_ext_base): 6 + 'Please specify via --pyqt-sip-flags=') 7 + 8 + self.include_dirs += (self.qt_include_dir, 9 + + '@poppler_include_dir@', 10 + os.path.join(self.qt_include_dir, 'QtCore'), 11 + os.path.join(self.qt_include_dir, 'QtGui'), 12 + os.path.join(self.qt_include_dir, 'QtXml'))
+5
pkgs/top-level/python-packages.nix
··· 5738 5738 }; 5739 5739 }; 5740 5740 5741 + poppler-qt5 = callPackage ../development/python-modules/poppler-qt5 { 5742 + inherit (pkgs.qt5) qtbase; 5743 + inherit (pkgs.libsForQt5) poppler; 5744 + }; 5745 + 5741 5746 poyo = buildPythonPackage rec { 5742 5747 version = "0.4.0"; 5743 5748 name = "poyo-${version}";