3
0
Fork 0
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:
Domen Kožar 2022-09-16 10:15:46 +01:00 committed by GitHub
commit dc0631ca66
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
'';