From fb20a53c1db0e0244afd3660d0bbbab23378f018 Mon Sep 17 00:00:00 2001 From: happysalada Date: Sat, 15 Apr 2023 23:34:52 -0400 Subject: [PATCH] python3Packages.datafusion: fix darwin build --- pkgs/development/python-modules/datafusion/default.nix | 3 ++- pkgs/top-level/python-packages.nix | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/datafusion/default.nix b/pkgs/development/python-modules/datafusion/default.nix index fe19f6f87539..b4d5292a8d8a 100644 --- a/pkgs/development/python-modules/datafusion/default.nix +++ b/pkgs/development/python-modules/datafusion/default.nix @@ -9,6 +9,7 @@ , numpy , protobuf , pyarrow +, Security }: let @@ -53,7 +54,7 @@ buildPythonPackage rec { maturinBuildHook ]; - buildInputs = [ protobuf ] ++ lib.optionals stdenv.isDarwin [ libiconv ]; + buildInputs = [ protobuf ] ++ lib.optionals stdenv.isDarwin [ libiconv Security ]; propagatedBuildInputs = [ pyarrow ]; diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 5337743f2c38..329a14efaa8b 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2278,7 +2278,9 @@ self: super: with self; { datadog = callPackage ../development/python-modules/datadog { }; - datafusion = callPackage ../development/python-modules/datafusion { }; + datafusion = callPackage ../development/python-modules/datafusion { + inherit (pkgs.darwin.apple_sdk.frameworks) Security; + }; datamodeldict = callPackage ../development/python-modules/datamodeldict { };