git.iko.soy/typeable/nixpkgs
on master help sign in
scikitlearn: 0.19.2 -> 0.20.0

Also re-enable tests

commit2a9ea69cd5d8cfca9bdafcd46567184761b3ecd5 authorKai Wohlfahrt <kai@prodo.ai> dateMon 12 Nov 2018, 11:58 (8 years ago) parentfd66e54
1 file changed+8−11
pkgs/development/python-modules/scikitlearn/default.nix+8−11
pkgs/development/python-modules/scikitlearn/default.nix+8−11
@@ -1,34 +1,31 @@
11{ stdenv, buildPythonPackage, fetchPypi, python
2−, nose, pillow
32, gfortran, glibcLocales
4−, numpy, scipy
3+, numpy, scipy, pytest, pillow
54}:
65
76buildPythonPackage rec {
87 pname = "scikit-learn";
9− version = "0.19.2";
8+ version = "0.20.0";
109 # UnboundLocalError: local variable 'message' referenced before assignment
11− doCheck = false;
1210 disabled = stdenv.isi686; # https://github.com/scikit-learn/scikit-learn/issues/5534
1311
1412 src = fetchPypi {
1513 inherit pname version;
16− sha256 = "b276739a5f863ccacb61999a3067d0895ee291c95502929b2ae56ea1f882e888";
14+ sha256 = "064cbxsis6m7l6pr09ijjwqdv0c0yrfnazabwq8p09gcz1qxklcp";
1715 };
1816
19− buildInputs = [ nose pillow gfortran glibcLocales ];
17+ buildInputs = [ pillow gfortran glibcLocales ];
2018 propagatedBuildInputs = [ numpy scipy numpy.blas ];
19+ checkInputs = [ pytest ];
2120
2221 LC_ALL="en_US.UTF-8";
2322
24− # Disable doctests on OSX: https://github.com/scikit-learn/scikit-learn/issues/10213
25− # Disable doctests everywhere: https://github.com/NixOS/nixpkgs/issues/35436
23+ # Skip test_feature_importance_regression - does web fetch
2624 checkPhase = ''
27− HOME=$TMPDIR OMP_NUM_THREADS=1 nosetests --doctest-options=+SKIP $out/${python.sitePackages}/sklearn/
25+ cd $TMPDIR
26+ HOME=$TMPDIR OMP_NUM_THREADS=1 pytest -k "not test_feature_importance_regression" --pyargs sklearn
2827 '';
2928
30−
31−
3229 meta = with stdenv.lib; {
3330 description = "A set of python modules for machine learning and data mining";
3431 homepage = http://scikit-learn.org;