summary refs log tree commit diff
path: root/pkgs/development/python-modules/vowpalwabbit/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/vowpalwabbit/default.nix')
-rw-r--r--pkgs/development/python-modules/vowpalwabbit/default.nix16
1 files changed, 8 insertions, 8 deletions
diff --git a/pkgs/development/python-modules/vowpalwabbit/default.nix b/pkgs/development/python-modules/vowpalwabbit/default.nix
index 589f8de99ee5..a8661fd3a985 100644
--- a/pkgs/development/python-modules/vowpalwabbit/default.nix
+++ b/pkgs/development/python-modules/vowpalwabbit/default.nix
@@ -1,12 +1,12 @@
-{ fetchurl, boost, zlib, clang, ncurses, pythonPackages, lib }:
+{ lib, buildPythonPackage, fetchPypi, python, boost, zlib, clang, ncurses
+, pytest, docutils, pygments, numpy, scipy, scikitlearn }:
 
-pythonPackages.buildPythonPackage rec {
+buildPythonPackage rec {
   pname = "vowpalwabbit";
-  name = "${pname}-${version}";
   version = "8.5.0";
 
-  src = fetchurl{
-    url = "mirror://pypi/v/vowpalwabbit/${name}.tar.gz";
+  src = fetchPypi{
+    inherit pname version;
     sha256 = "0b517371fc64f1c728a0af42a31fa93def27306e9b4d25d6e5fd01bcff1b7304";
   };
   # vw tries to write some explicit things to home
@@ -15,13 +15,13 @@ pythonPackages.buildPythonPackage rec {
     export HOME=$PWD
   '';
 
-  buildInputs = with pythonPackages; [ boost.dev zlib.dev clang ncurses pytest docutils pygments ];
-  propagatedBuildInputs = with pythonPackages; [ numpy scipy scikitlearn ];
+  buildInputs = [ boost.dev zlib.dev clang ncurses pytest docutils pygments ];
+  propagatedBuildInputs = [ 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
+    ${python.interpreter} setup.py check -mrs
   '';
 
   meta = with lib; {