From bf98858c0fffa8b2a714faa28077d73947cacc9f Mon Sep 17 00:00:00 2001 From: Dmitry Kalinkin Date: Mon, 29 Nov 2021 01:14:14 -0500 Subject: [PATCH] pythonPackages.tokenizers: fix darwin build --- pkgs/development/python-modules/tokenizers/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/development/python-modules/tokenizers/default.nix b/pkgs/development/python-modules/tokenizers/default.nix index d5d26050eeeb..55928d4fcc8e 100644 --- a/pkgs/development/python-modules/tokenizers/default.nix +++ b/pkgs/development/python-modules/tokenizers/default.nix @@ -1,9 +1,11 @@ { lib +, stdenv , fetchFromGitHub , fetchurl , buildPythonPackage , rustPlatform , setuptools-rust +, libiconv , numpy , datasets , pytestCheckHook @@ -72,6 +74,10 @@ in buildPythonPackage rec { rust.rustc ]); + buildInputs = lib.optionals stdenv.isDarwin [ + libiconv + ]; + propagatedBuildInputs = [ numpy ];