diff options
author | Tom Hunger <tehunger@gmail.com> | 2017-02-15 16:49:49 +0000 |
---|---|---|
committer | Franz Pletz <fpletz@fnordicwalking.de> | 2017-02-22 07:28:52 +0100 |
commit | bae3d0e49f945bbd71233c9c9bfe0de33dd0538e (patch) | |
tree | 4b39fa5c17285d5cb9858e6fd82c56966ac87a84 /pkgs/development/python-modules/vowpalwabbit | |
parent | 63200708afa37d513190817d1405089b48420b62 (diff) | |
download | nixlib-bae3d0e49f945bbd71233c9c9bfe0de33dd0538e.tar nixlib-bae3d0e49f945bbd71233c9c9bfe0de33dd0538e.tar.gz nixlib-bae3d0e49f945bbd71233c9c9bfe0de33dd0538e.tar.bz2 nixlib-bae3d0e49f945bbd71233c9c9bfe0de33dd0538e.tar.lz nixlib-bae3d0e49f945bbd71233c9c9bfe0de33dd0538e.tar.xz nixlib-bae3d0e49f945bbd71233c9c9bfe0de33dd0538e.tar.zst nixlib-bae3d0e49f945bbd71233c9c9bfe0de33dd0538e.zip |
vowpalwabbit: init at 8.3.2
Diffstat (limited to 'pkgs/development/python-modules/vowpalwabbit')
-rw-r--r-- | pkgs/development/python-modules/vowpalwabbit/default.nix | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/vowpalwabbit/default.nix b/pkgs/development/python-modules/vowpalwabbit/default.nix new file mode 100644 index 000000000000..4c343985c597 --- /dev/null +++ b/pkgs/development/python-modules/vowpalwabbit/default.nix @@ -0,0 +1,32 @@ +{ fetchurl, boost, zlib, clang, ncurses, pythonPackages, lib }: +pythonPackages.buildPythonPackage rec { + name = "vowpalwabbit-${version}"; + version = "8.3.2"; + + src = fetchurl{ + url = "mirror://pypi/v/vowpalwabbit/${name}.tar.gz"; + sha256 = "0qm8rlrs2gfgamqnpx4lapxakpzgh0yh3kp1lbd7lhb0r748m3k7"; + }; + # vw tries to write some explicit things to home + # python installed: The directory '/homeless-shelter/.cache/pip/http' + preInstall = '' + export HOME=$PWD + ''; + + buildInputs = with pythonPackages; [ boost.dev zlib.dev clang ncurses pytest docutils pygments ]; + propagatedBuildInputs = with pythonPackages; [ numpy scipy scikitlearn ]; + + checkPhase = '' + # check-manifest requires a git clone, not a tarball + # check-manifest --ignore "Makefile,PACKAGE.rst,*.cc,tox.ini,tests*,examples*,src*" + python setup.py check -mrs + ''; + + meta = with lib; { + description = "Vowpal Wabbit is a fast machine learning library for online learning, and this is the python wrapper for the project."; + homepage = https://github.com/JohnLangford/vowpal_wabbit; + license = licenses.bsd3; + maintainers = with maintainers; [ teh ]; + }; + +} |