16 buildPythonPackage rec {
17 pname = "python-poppler-qt5";
23 inherit pname version;
24 sha256 = "0b82gm4i75q5v19kfbq0h4y0b2vcwr2213zkhxh6l0h45kdndmxd";
28 # Fix for https://github.com/frescobaldi/python-poppler-qt5/issues/43 (from PR #45)
30 url = "https://github.com/frescobaldi/python-poppler-qt5/commit/40e71ad88173d02648bceb2438bc0567e60dacd5.patch";
31 sha256 = "0c93d0k7b1n2s2njl8g92x6vw3z96da1fczah9qx07x08iw8dzi5";
35 buildInputs = [ qtbase.dev poppler pyqt-builder ];
36 nativeBuildInputs = [ pkg-config qmake sip setuptools ];
37 propagatedBuildInputs = [ pyqt5.dev ];
43 cat <<EOF >> pyproject.toml
44 [tool.sip.bindings.Poppler-Qt5]
45 include-dirs = ["${poppler.dev}/include/poppler"]
49 # no tests, just bindings for `poppler_qt5`
51 pythonImportsCheck = [ "popplerqt5" ];
53 dontWrapQtApps = true;
56 homepage = "https://github.com/frescobaldi/python-poppler-qt5";
57 license = licenses.lgpl21Plus;
58 maintainers = with maintainers; [ ];