1{ lib, buildPythonPackage, fetchPypi, python, boost, zlib, clang, ncurses
2, pytest, docutils, pygments, numpy, scipy, scikitlearn }:
3
4buildPythonPackage rec {
5 pname = "vowpalwabbit";
6 version = "8.5.0";
7
8 src = fetchPypi{
9 inherit pname version;
10 sha256 = "0b517371fc64f1c728a0af42a31fa93def27306e9b4d25d6e5fd01bcff1b7304";
11 };
12 # vw tries to write some explicit things to home
13 # python installed: The directory '/homeless-shelter/.cache/pip/http'
14 preInstall = ''
15 export HOME=$PWD
16 '';
17
18 buildInputs = [ boost.dev zlib.dev clang ncurses pytest docutils pygments ];
19 propagatedBuildInputs = [ numpy scipy scikitlearn ];
20
21 checkPhase = ''
22 # check-manifest requires a git clone, not a tarball
23 # check-manifest --ignore "Makefile,PACKAGE.rst,*.cc,tox.ini,tests*,examples*,src*"
24 ${python.interpreter} setup.py check -mrs
25 '';
26
27 meta = with lib; {
28 description = "Vowpal Wabbit is a fast machine learning library for online learning, and this is the python wrapper for the project.";
29 homepage = https://github.com/JohnLangford/vowpal_wabbit;
30 license = licenses.bsd3;
31 maintainers = with maintainers; [ teh ];
32 };
33}