@@ -1,5 +1,5 @@
1−{ lib, buildPythonPackage, fetchPypi, python, boost, zlib, clang, ncurses
2−, pytest, docutils, pygments, numpy, scipy, scikitlearn }:
1+{ stdenv, lib, buildPythonPackage, fetchPypi, python, boost, zlib, clang
2+, ncurses, pytest, docutils, pygments, numpy, scipy, scikitlearn }:
33
44buildPythonPackage rec {
55 pname = "vowpalwabbit";
@@ -25,6 +25,11 @@ buildPythonPackage rec {
2525 buildInputs = [ python.pkgs.boost zlib.dev clang ncurses pytest docutils pygments ];
2626 propagatedBuildInputs = [ numpy scipy scikitlearn ];
2727
28+ # Python ctypes.find_library uses DYLD_LIBRARY_PATH.
29+ preConfigure = lib.optionalString stdenv.isDarwin ''
30+ export DYLD_LIBRARY_PATH="${python.pkgs.boost}/lib"
31+ '';
32+
2833 checkPhase = ''
2934 # check-manifest requires a git clone, not a tarball
3035 # check-manifest --ignore "Makefile,PACKAGE.rst,*.cc,tox.ini,tests*,examples*,src*"