mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-20 04:31:52 +00:00
python.pkgs.scikitlearn: fix python 3.6 tests
This commit is contained in:
parent
dac3cf5a4a
commit
cf2c5f1be9
41
pkgs/development/python-modules/scikitlearn/default.nix
Normal file
41
pkgs/development/python-modules/scikitlearn/default.nix
Normal file
|
@ -0,0 +1,41 @@
|
|||
{ stdenv, buildPythonPackage, fetchpatch, fetchPypi, python
|
||||
, nose, pillow
|
||||
, gfortran, glibcLocales
|
||||
, numpy, scipy
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "scikit-learn";
|
||||
version = "0.18.1";
|
||||
name = "${pname}-${version}";
|
||||
disabled = stdenv.isi686; # https://github.com/scikit-learn/scikit-learn/issues/5534
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1eddfc27bb37597a5d514de1299981758e660e0af56981c0bfdf462c9568a60c";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# python 3.6 test fixes (will be part of 0.18.2)
|
||||
(fetchpatch {
|
||||
url = https://github.com/scikit-learn/scikit-learn/pull/8123/commits/b77f28a7163cb4909da1b310f1fb741bee3cabfe.patch;
|
||||
sha256 = "1rp6kr6hiabb6s0vh7mkgr10qwrqlq3z1fhpi0s011hg434ckh19";
|
||||
})
|
||||
];
|
||||
|
||||
buildInputs = [ nose pillow gfortran glibcLocales ];
|
||||
propagatedBuildInputs = [ numpy scipy numpy.blas ];
|
||||
|
||||
LC_ALL="en_US.UTF-8";
|
||||
|
||||
checkPhase = ''
|
||||
HOME=$TMPDIR OMP_NUM_THREADS=1 nosetests $out/${python.sitePackages}/sklearn/
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A set of python modules for machine learning and data mining";
|
||||
homepage = http://scikit-learn.org;
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ fridh ];
|
||||
};
|
||||
}
|
|
@ -22177,32 +22177,8 @@ in {
|
|||
};
|
||||
};
|
||||
|
||||
|
||||
scikitlearn = buildPythonPackage rec {
|
||||
name = "scikit-learn-${version}";
|
||||
version = "0.18.1";
|
||||
disabled = stdenv.isi686; # https://github.com/scikit-learn/scikit-learn/issues/5534
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = "mirror://pypi/s/scikit-learn/${name}.tar.gz";
|
||||
sha256 = "1eddfc27bb37597a5d514de1299981758e660e0af56981c0bfdf462c9568a60c";
|
||||
};
|
||||
|
||||
buildInputs = with self; [ nose pillow pkgs.gfortran pkgs.glibcLocales ];
|
||||
propagatedBuildInputs = with self; [ numpy scipy numpy.blas ];
|
||||
|
||||
LC_ALL="en_US.UTF-8";
|
||||
|
||||
checkPhase = ''
|
||||
HOME=$TMPDIR OMP_NUM_THREADS=1 nosetests $out/${python.sitePackages}/sklearn/
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "A set of python modules for machine learning and data mining";
|
||||
homepage = http://scikit-learn.org;
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ fridh ];
|
||||
};
|
||||
scikitlearn = callPackage ../development/python-modules/scikitlearn {
|
||||
inherit (pkgs) gfortran glibcLocales;
|
||||
};
|
||||
|
||||
scripttest = buildPythonPackage rec {
|
||||
|
|
Loading…
Reference in a new issue