python3Packages.pyqt5: fix build for aarch64-darwin

This commit is contained in:
Zaripov Kamil 2022-08-14 13:11:01 +03:00
parent 3abc3afcf3
commit 57c6962509

View file

@ -1,4 +1,5 @@
{ lib { lib
, stdenv
, buildPythonPackage , buildPythonPackage
, isPy27 , isPy27
, fetchPypi , fetchPypi
@ -37,11 +38,19 @@ buildPythonPackage rec {
./pyqt5-confirm-license.patch ./pyqt5-confirm-license.patch
]; ];
postPatch =
# be more verbose # be more verbose
postPatch = '' ''
cat >> pyproject.toml <<EOF cat >> pyproject.toml <<EOF
[tool.sip.project] [tool.sip.project]
verbose = true verbose = true
''
# Due to bug in SIP .whl name generation we have to bump minimal macos sdk upto 11.0 for
# aarch64-darwin. This patch can be removed once SIP will fix it in upstream,
# see https://github.com/NixOS/nixpkgs/pull/186612#issuecomment-1214635456.
+ lib.optionalString (stdenv.isDarwin && stdenv.isAarch64) ''
minimum-macos-version = "11.0"
'' + ''
EOF EOF
''; '';