Merge pull request #300142 from SomeoneSerge/fix/rerun/darwin-iconv

python3Packages.rerun-sdk: fix -liconv on darwin
This commit is contained in:
Weijia Wang 2024-03-31 18:29:35 +02:00 committed by GitHub
commit 014711e881
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4,6 +4,7 @@
rustPlatform,
stdenv,
attrs,
darwin,
numpy,
pillow,
pyarrow,
@ -12,6 +13,7 @@
typing-extensions,
pytestCheckHook,
python,
libiconv,
}:
buildPythonPackage {
@ -27,6 +29,13 @@ buildPythonPackage {
rustPlatform.maturinBuildHook
];
buildInputs = [
libiconv # No-op on Linux, necessary on Darwin.
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
darwin.apple_sdk.frameworks.AppKit
darwin.apple_sdk.frameworks.CoreServices
];
propagatedBuildInputs = [
attrs
numpy