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.
This commit is contained in:
Daniël de Kok 2018-09-05 16:22:52 +02:00 committed by xeji
parent bf2a90298a
commit 348a153781

View File

@ -6,6 +6,7 @@
, pytest , pytest
, cython , cython
, cymem , cymem
, darwin
, msgpack-numpy , msgpack-numpy
, msgpack-python , msgpack-python
, preshed , preshed
@ -40,6 +41,10 @@ buildPythonPackage rec {
--replace "hypothesis>=2,<3" "hypothesis>=2" --replace "hypothesis>=2,<3" "hypothesis>=2"
''; '';
buildInputs = lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [
Accelerate CoreFoundation CoreGraphics CoreVideo
]);
propagatedBuildInputs = [ propagatedBuildInputs = [
cython cython
cymem cymem