python3Packages.dbus-python: cap MACOSX_DEPLOYMENT_TARGET at 10.16

This commit is contained in:
Ivan Babrou 2021-05-13 19:50:21 -07:00 committed by Jonathan Ringer
parent 2987d66d0f
commit 59579ed4fa

View file

@ -1,4 +1,4 @@
{ lib, fetchPypi, buildPythonPackage, python, pkg-config, dbus, dbus-glib, isPyPy
{ lib, stdenv, fetchPypi, buildPythonPackage, python, pkg-config, dbus, dbus-glib, isPyPy
, ncurses, pygobject3, isPy3k }:
buildPythonPackage rec {
@ -19,6 +19,10 @@ buildPythonPackage rec {
disabled = isPyPy;
preConfigure = if (lib.versionAtLeast stdenv.hostPlatform.darwinMinVersion "11" && stdenv.isDarwin) then ''
MACOSX_DEPLOYMENT_TARGET=10.16
'' else null;
nativeBuildInputs = [ pkg-config ];
buildInputs = [ dbus dbus-glib ]
# My guess why it's sometimes trying to -lncurses.