Merge pull request #128293 from eduardosm/python-poppler-qt5

python3Packages.poppler-qt5: reduce the amount of patching done to `pyproject.toml`
This commit is contained in:
Sandro 2021-07-23 16:51:59 +02:00 committed by GitHub
commit ab8fc0743e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,9 +1,7 @@
{ stdenv
, lib
{ lib
, buildPythonPackage
, isPy3k
, fetchPypi
, pythonPackages
, sip
, qtbase
, qmake
@ -42,11 +40,8 @@ buildPythonPackage rec {
postPatch = ''
cat <<EOF >> pyproject.toml
sip-include-dirs = ["${pyqt5}/share/sip/PyQt5"]
[tool.sip.bindings.Poppler-Qt5]
include-dirs = ["${poppler.dev}/include/poppler"]
tags = ["${sip.platform_tag}"]
EOF
'';