diff options
author | Daniƫl de Kok <me@github.danieldk.eu> | 2018-09-05 16:22:52 +0200 |
---|---|---|
committer | xeji <36407913+xeji@users.noreply.github.com> | 2018-09-05 16:22:52 +0200 |
commit | 348a153781bf5a65df5e9f3d65d5db0dddbe8256 (patch) | |
tree | 84cb88a1d15271097d09ce6a73f9dc6598910f9f /pkgs/development/python-modules/thinc | |
parent | bf2a90298ab8a5dcd2596f7fabaad431c6709afd (diff) | |
download | nixlib-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.nix | 5 |
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 |