forked from mirrors/nixpkgs
Merge pull request #186612 from tanshihaj/master-fix-pyqt-build-2
python3Packages.pyqt5: fix build for aarch64-darwin
This commit is contained in:
commit
dc0631ca66
|
@ -1,4 +1,5 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, buildPythonPackage
|
||||
, isPy27
|
||||
, fetchPypi
|
||||
|
@ -37,11 +38,19 @@ buildPythonPackage rec {
|
|||
./pyqt5-confirm-license.patch
|
||||
];
|
||||
|
||||
postPatch =
|
||||
# be more verbose
|
||||
postPatch = ''
|
||||
''
|
||||
cat >> pyproject.toml <<EOF
|
||||
[tool.sip.project]
|
||||
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
|
||||
'';
|
||||
|
||||
|
|
Loading…
Reference in a new issue