python310Packages.pyqtwebengine: fix build on aarch64-darwin

This commit is contained in:
Weijia Wang 2023-01-26 16:51:02 +01:00
parent e39a949aaa
commit 36c371ea51

View file

@ -1,10 +1,12 @@
{ lib, pythonPackages, pkg-config
{ lib, stdenv, pythonPackages, pkg-config
, qmake, qtbase, qtsvg, qtwebengine
, wrapQtAppsHook
, darwin
}:
let
inherit (pythonPackages) buildPythonPackage python isPy27 pyqt5 enum34 sip pyqt-builder;
inherit (darwin) autoSignDarwinBinariesHook;
in buildPythonPackage rec {
pname = "PyQtWebEngine";
version = "5.15.4";
@ -33,6 +35,8 @@ in buildPythonPackage rec {
qtwebengine
pyqt-builder
pythonPackages.setuptools
] ++ lib.optionals (stdenv.isDarwin && stdenv.isAarch64) [
autoSignDarwinBinariesHook
];
buildInputs = [