summary refs log tree commit diff
path: root/pkgs/development/python-modules/thinc
diff options
context:
space:
mode:
authorDaniƫl de Kok <me@github.danieldk.eu>2018-09-05 16:22:52 +0200
committerxeji <36407913+xeji@users.noreply.github.com>2018-09-05 16:22:52 +0200
commit348a153781bf5a65df5e9f3d65d5db0dddbe8256 (patch)
tree84cb88a1d15271097d09ce6a73f9dc6598910f9f /pkgs/development/python-modules/thinc
parentbf2a90298ab8a5dcd2596f7fabaad431c6709afd (diff)
downloadnixlib-348a153781bf5a65df5e9f3d65d5db0dddbe8256.tar
nixlib-348a153781bf5a65df5e9f3d65d5db0dddbe8256.tar.gz
nixlib-348a153781bf5a65df5e9f3d65d5db0dddbe8256.tar.bz2
nixlib-348a153781bf5a65df5e9f3d65d5db0dddbe8256.tar.lz
nixlib-348a153781bf5a65df5e9f3d65d5db0dddbe8256.tar.xz
nixlib-348a153781bf5a65df5e9f3d65d5db0dddbe8256.tar.zst
nixlib-348a153781bf5a65df5e9f3d65d5db0dddbe8256.zip
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.
Diffstat (limited to 'pkgs/development/python-modules/thinc')
-rw-r--r--pkgs/development/python-modules/thinc/default.nix5
1 files changed, 5 insertions, 0 deletions
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