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.
commit348a153781bf5a65df5e9f3d65d5db0dddbe8256
authorDaniël de Kok <me@github.danieldk.eu>
dateWed 5 Sep 2018, 16:22 (8 years ago)
parentbf2a902
pkgs/development/python-modules/thinc/default.nix+5
@@ -6,6 +6,7 @@
66, pytest
77, cython
88, cymem
9+, darwin
910, msgpack-numpy
1011, msgpack-python
1112, preshed
@@ -40,6 +41,10 @@ buildPythonPackage rec {
4041 --replace "hypothesis>=2,<3" "hypothesis>=2"
4142 '';
4243
44+ buildInputs = lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [
45+ Accelerate CoreFoundation CoreGraphics CoreVideo
46+ ]);
47+
4348 propagatedBuildInputs = [
4449 cython
4550 cymem