···1010 sha256 = "sha256-SHdYDDjOtTIOEps4HQg7CoYBxoFm2LmXB/CPoKFonu8=";
1111 };
12121313+ patches = [
1414+ # use the sip-distinfo executable from PATH instead of trying to guess,
1515+ # we know it's the right one because it's the _only_ one
1616+ ./use-sip-distinfo-from-path.patch
1717+ ];
1818+1319 propagatedBuildInputs = [ packaging sip ];
14201521 pythonImportsCheck = [ "pyqtbuild" ];
···11+diff --git a/pyqtbuild/builder.py b/pyqtbuild/builder.py
22+index 3f35a7f..58701dd 100644
33+--- a/pyqtbuild/builder.py
44++++ b/pyqtbuild/builder.py
55+@@ -51,15 +51,6 @@ class QmakeBuilder(Builder):
66+ """ Set default values for user options that haven't been set yet. """
77+88+ if tool in Option.BUILD_TOOLS:
99+- # A PEP 517 frontend will set PATH so that sip-distinfo is found on
1010+- # it. However for our own frontends we want to use the version
1111+- # corresponding to the frontend (and, anyway, the frontend may not
1212+- # be on PATH).
1313+- if tool != 'pep517':
1414+- self._sip_distinfo = os.path.join(
1515+- os.path.abspath(os.path.dirname(sys.argv[0])),
1616+- self._sip_distinfo)
1717+-
1818+ # Check we have a qmake.
1919+ if self.qmake is None:
2020+ self.qmake = self._find_exe('qmake')