19 buildPythonPackage rec {
20 pname = "vowpalwabbit";
22 format = "setuptools";
25 inherit pname version;
26 hash = "sha256-YCg2EI4rhEMwcVEzx9ES8Z3CoCddeUFVk4lZ0nuQJUc=";
44 # As we disable configure via cmake, pass explicit global options to enable
45 # spdlog and fmt packages
46 setupPyGlobalFlags = [ "--cmake-options=\"-DSPDLOG_SYS_DEP=ON;-DFMT_SYS_DEP=ON\"" ];
48 propagatedBuildInputs = [
54 # Python build script uses CMake, but we don't want CMake to do the
56 dontUseCmakeConfigure = true;
58 # Python ctypes.find_library uses DYLD_LIBRARY_PATH.
59 preConfigure = lib.optionalString stdenv.isDarwin ''
60 export DYLD_LIBRARY_PATH="${python.pkgs.boost}/lib"
64 # check-manifest requires a git clone, not a tarball
65 # check-manifest --ignore "Makefile,PACKAGE.rst,*.cc,tox.ini,tests*,examples*,src*"
66 ${python.interpreter} setup.py check -ms
70 description = "Vowpal Wabbit is a fast machine learning library for online learning, and this is the python wrapper for the project.";
71 homepage = "https://github.com/JohnLangford/vowpal_wabbit";
72 license = licenses.bsd3;
73 broken = stdenv.isAarch64;
74 maintainers = with maintainers; [ teh ];