From 348a153781bf5a65df5e9f3d65d5db0dddbe8256 Mon Sep 17 00:00:00 2001 From: Daniƫl de Kok Date: Wed, 5 Sep 2018 16:22:52 +0200 Subject: pythonPackages.thinc: fix darwin build (#46092) thinc uses Accelerate on macOS as a blas library. Add the necessary dependencies to allow building on unsandboxed Darwin machines. --- pkgs/development/python-modules/thinc/default.nix | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'pkgs/development/python-modules/thinc') diff --git a/pkgs/development/python-modules/thinc/default.nix b/pkgs/development/python-modules/thinc/default.nix index 321b1fb11816..6217a4200574 100644 --- a/pkgs/development/python-modules/thinc/default.nix +++ b/pkgs/development/python-modules/thinc/default.nix @@ -6,6 +6,7 @@ , pytest , cython , cymem +, darwin , msgpack-numpy , msgpack-python , preshed @@ -40,6 +41,10 @@ buildPythonPackage rec { --replace "hypothesis>=2,<3" "hypothesis>=2" ''; + buildInputs = lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ + Accelerate CoreFoundation CoreGraphics CoreVideo + ]); + propagatedBuildInputs = [ cython cymem -- cgit 1.4.1