20 buildPythonPackage rec {
21 pname = "vowpalwabbit";
23 format = "setuptools";
26 inherit pname version;
27 hash = "sha256-Yyqm3MlW6UL+bCufFfzWg9mBBQNhLxR+g++ZrQ6qM/E=";
30 nativeBuildInputs = [ cmake ];
43 # As we disable configure via cmake, pass explicit global options to enable
44 # spdlog and fmt packages
45 setupPyGlobalFlags = [ "--cmake-options=\"-DSPDLOG_SYS_DEP=ON;-DFMT_SYS_DEP=ON\"" ];
47 propagatedBuildInputs = [
53 # Python build script uses CMake, but we don't want CMake to do the
55 dontUseCmakeConfigure = true;
57 # Python ctypes.find_library uses DYLD_LIBRARY_PATH.
58 preConfigure = lib.optionalString stdenv.hostPlatform.isDarwin ''
59 export DYLD_LIBRARY_PATH="${python.pkgs.boost}/lib"
63 # check-manifest requires a git clone, not a tarball
64 # check-manifest --ignore "Makefile,PACKAGE.rst,*.cc,tox.ini,tests*,examples*,src*"
65 ${python.interpreter} setup.py check -ms
69 description = "Vowpal Wabbit is a fast machine learning library for online learning, and this is the python wrapper for the project";
70 homepage = "https://github.com/JohnLangford/vowpal_wabbit";
71 license = licenses.bsd3;
72 maintainers = with maintainers; [ teh ];
73 # Test again when new version is released
74 broken = stdenv.hostPlatform.isLinux;