Merge pull request #123017 from DavHau/davhau-scikitlearn

python3Packages.scikitlearn: rename to scikit-learn
This commit is contained in:
Robert Schütz 2021-05-17 15:13:33 +02:00 committed by GitHub
commit a22ebb6d6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
49 changed files with 115 additions and 99 deletions

View File

@ -131,7 +131,7 @@ in {
env = (pkgs.python3.withPackages (pythonPackages: with pythonPackages; [
ipykernel
pandas
scikitlearn
scikit-learn
]));
in {
displayName = "Python 3 for machine learning";

View File

@ -117,7 +117,7 @@ in {
env = (pkgs.python3.withPackages (pythonPackages: with pythonPackages; [
ipykernel
pandas
scikitlearn
scikit-learn
]));
in {
displayName = "Python 3 for machine learning";

View File

@ -8,7 +8,7 @@
, numpy
, pillow
, scipy
, scikitlearn
, scikit-learn
, scikitimage
, threadpoolctl
}:
@ -28,7 +28,7 @@ buildPythonPackage rec {
};
propagatedBuildInputs = [
future numpy pillow scipy scikitlearn scikitimage threadpoolctl
future numpy pillow scipy scikit-learn scikitimage threadpoolctl
];
checkInputs = [ pytestCheckHook unittest2 ];

View File

@ -2,7 +2,7 @@
, buildPythonPackage
, fetchFromGitHub
, python
, scikitlearn
, scikit-learn
, scipy
, pytest
, isPy27
@ -21,7 +21,7 @@ buildPythonPackage rec {
};
propagatedBuildInputs = [
scikitlearn
scikit-learn
scipy
];

View File

@ -6,7 +6,7 @@
, biopython
, numpy
, scipy
, scikitlearn
, scikit-learn
, pandas
, matplotlib
, reportlab
@ -42,7 +42,7 @@ buildPythonPackage rec {
biopython
numpy
scipy
scikitlearn
scikit-learn
pandas
matplotlib
reportlab

View File

@ -7,7 +7,7 @@
, multipledispatch
, setuptools-scm
, scipy
, scikitlearn
, scikit-learn
, pytestCheckHook
}:
@ -22,7 +22,7 @@ buildPythonPackage rec {
nativeBuildInputs = [ setuptools-scm ];
checkInputs = [ pytestCheckHook ];
propagatedBuildInputs = [ cloudpickle dask numpy toolz multipledispatch scipy scikitlearn ];
propagatedBuildInputs = [ cloudpickle dask numpy toolz multipledispatch scipy scikit-learn ];
meta = with lib; {
homepage = "https://github.com/dask/dask-glm/";

View File

@ -6,7 +6,7 @@
, numpy, toolz # dask[array]
, numba
, pandas
, scikitlearn
, scikit-learn
, scipy
, dask-glm
, six
@ -39,7 +39,7 @@ buildPythonPackage rec {
numpy
packaging
pandas
scikitlearn
scikit-learn
scipy
six
toolz

View File

@ -8,7 +8,7 @@
, pandas
, scipy
, numpy
, scikitlearn
, scikit-learn
, lammps-cython
, pymatgen-lammps
, pytestrunner
@ -34,7 +34,7 @@ buildPythonPackage rec {
pandas
scipy
numpy
scikitlearn
scikit-learn
lammps-cython
pymatgen-lammps
];

View File

@ -5,7 +5,7 @@
, six
, scipy
, smart_open
, scikitlearn, testfixtures, unittest2
, scikit-learn, testfixtures, unittest2
, isPy3k
}:
@ -21,7 +21,7 @@ buildPythonPackage rec {
propagatedBuildInputs = [ smart_open numpy six scipy ];
checkInputs = [ scikitlearn testfixtures unittest2 ];
checkInputs = [ scikit-learn testfixtures unittest2 ];
# Two tests fail.
#

View File

@ -8,7 +8,7 @@
, matplotlib
, networkx
, numpy
, scikitlearn
, scikit-learn
, scipy
, seaborn
}:
@ -31,7 +31,7 @@ buildPythonPackage rec {
matplotlib
networkx
numpy
scikitlearn
scikit-learn
scipy
seaborn
];

View File

@ -5,7 +5,7 @@
, numpy
, pytestCheckHook
, scipy
, scikitlearn
, scikit-learn
, fetchPypi
, joblib
, six
@ -29,7 +29,7 @@ buildPythonPackage rec {
];
nativeBuildInputs = [ cython ];
propagatedBuildInputs = [ numpy scipy scikitlearn joblib six ];
propagatedBuildInputs = [ numpy scipy scikit-learn joblib six ];
preCheck = ''
cd hdbscan/tests
rm __init__.py

View File

@ -1,4 +1,4 @@
{ lib, fetchurl, buildPythonPackage, numpy, scikitlearn, setuptools_scm, cython, pytest }:
{ lib, fetchurl, buildPythonPackage, numpy, scikit-learn, setuptools_scm, cython, pytest }:
buildPythonPackage rec {
pname = "hmmlearn";
@ -10,7 +10,7 @@ buildPythonPackage rec {
};
buildInputs = [ setuptools_scm cython ];
propagatedBuildInputs = [ numpy scikitlearn ];
propagatedBuildInputs = [ numpy scikit-learn ];
checkInputs = [ pytest ];
checkPhase = ''

View File

@ -4,7 +4,7 @@
, fetchFromGitHub
, pytestCheckHook , pytestcov , numba
, numpy
, scikitlearn
, scikit-learn
, scipy
, matplotlib
, seaborn
@ -26,7 +26,7 @@ buildPythonPackage rec {
propagatedBuildInputs = [
numba
numpy
scikitlearn
scikit-learn
scipy
];

View File

@ -8,7 +8,7 @@
, mock
, pytorch
, pynvml
, scikitlearn
, scikit-learn
, tqdm
}:
@ -24,7 +24,7 @@ buildPythonPackage rec {
};
checkInputs = [ pytestCheckHook matplotlib mock pytest_xdist ];
propagatedBuildInputs = [ pytorch scikitlearn tqdm pynvml ];
propagatedBuildInputs = [ pytorch scikit-learn tqdm pynvml ];
# runs succesfully in 3.9, however, async isn't correctly closed so it will fail after test suite.
doCheck = pythonOlder "3.9";

View File

@ -1,4 +1,4 @@
{ lib, buildPythonPackage, fetchPypi, scikitlearn, pandas, nose, pytest }:
{ lib, buildPythonPackage, fetchPypi, scikit-learn, pandas, nose, pytest }:
buildPythonPackage rec {
pname = "imbalanced-learn";
@ -9,7 +9,7 @@ buildPythonPackage rec {
sha256 = "5bd9e86e40ce4001a57426541d7c79b18143cbd181e3330c1a3e5c5c43287083";
};
propagatedBuildInputs = [ scikitlearn ];
propagatedBuildInputs = [ scikit-learn ];
checkInputs = [ nose pytest pandas ];
checkPhase = ''
export HOME=$PWD

View File

@ -4,7 +4,7 @@
, isPy27
, pandas
, pytestCheckHook
, scikitlearn
, scikit-learn
}:
buildPythonPackage rec {
@ -17,7 +17,7 @@ buildPythonPackage rec {
sha256 = "0a9xrw4qsh95g85pg2611hvj6xcfncw646si2icaz22haw1x410w";
};
propagatedBuildInputs = [ scikitlearn ];
propagatedBuildInputs = [ scikit-learn ];
checkInputs = [ pytestCheckHook pandas ];
preCheck = ''
export HOME=$TMPDIR

View File

@ -1,7 +1,7 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, scikitlearn
, scikit-learn
, numpy
, scipy
, jinja2
@ -25,7 +25,7 @@ buildPythonPackage rec {
};
propagatedBuildInputs = [
scikitlearn
scikit-learn
numpy
scipy
jinja2

View File

@ -4,7 +4,7 @@
, joblib
, matplotlib
, six
, scikitlearn
, scikit-learn
, decorator
, audioread
, resampy
@ -21,7 +21,7 @@ buildPythonPackage rec {
sha256 = "af0b9f2ed4bbf6aecbc448a4cd27c16453c397cb6bef0f0cfba0e63afea2b839";
};
propagatedBuildInputs = [ joblib matplotlib six scikitlearn decorator audioread resampy soundfile pooch ];
propagatedBuildInputs = [ joblib matplotlib six scikit-learn decorator audioread resampy soundfile pooch ];
# No tests
# 1. Internet connection is required

View File

@ -4,7 +4,7 @@
, cmake
, numpy
, scipy
, scikitlearn
, scikit-learn
, llvmPackages ? null
}:
@ -39,7 +39,7 @@ buildPythonPackage rec {
propagatedBuildInputs = [
numpy
scipy
scikitlearn
scikit-learn
];
postConfigure = ''

View File

@ -3,7 +3,7 @@
, buildPythonPackage
, fetchFromGitHub
, fetchpatch
, scikitlearn
, scikit-learn
, pytestCheckHook
, pytest-randomly
}:
@ -28,7 +28,7 @@ buildPythonPackage rec {
})
];
propagatedBuildInputs = [ scikitlearn ];
propagatedBuildInputs = [ scikit-learn ];
checkInputs = [ pytest-randomly pytestCheckHook ];
postPatch = ''

View File

@ -5,7 +5,7 @@
, pytestCheckHook
, scipy
, numpy
, scikitlearn
, scikit-learn
, pandas
, matplotlib
, joblib
@ -33,7 +33,7 @@ buildPythonPackage rec {
propagatedBuildInputs = [
scipy
numpy
scikitlearn
scikit-learn
pandas
matplotlib
joblib
@ -45,7 +45,7 @@ buildPythonPackage rec {
license= licenses.bsd3;
maintainers = with maintainers; [ evax ];
platforms = platforms.unix;
# incompatible with nixpkgs scikitlearn version
# incompatible with nixpkgs scikit-learn version
broken = true;
};
}

View File

@ -11,7 +11,7 @@
, matplotlib
, nibabel
, pandas
, scikitlearn
, scikit-learn
}:
buildPythonPackage rec {
@ -40,7 +40,7 @@ buildPythonPackage rec {
matplotlib
nibabel
pandas
scikitlearn
scikit-learn
];
preCheck = ''
export HOME=$TMP

View File

@ -13,14 +13,14 @@
, advancedProcessing ? false
, opencv3 ? null
, scikitimage ? null
, scikitlearn ? null
, scikit-learn ? null
, scipy ? null
, matplotlib ? null
, youtube-dl ? null
}:
assert advancedProcessing -> (
opencv3 != null && scikitimage != null && scikitlearn != null
opencv3 != null && scikitimage != null && scikit-learn != null
&& scipy != null && matplotlib != null && youtube-dl != null);
buildPythonPackage rec {
@ -40,7 +40,7 @@ buildPythonPackage rec {
propagatedBuildInputs = [
numpy decorator imageio imageio-ffmpeg tqdm requests proglog
] ++ (lib.optionals advancedProcessing [
opencv3 scikitimage scikitlearn scipy matplotlib youtube-dl
opencv3 scikitimage scikit-learn scipy matplotlib youtube-dl
]);
meta = with lib; {

View File

@ -1,5 +1,5 @@
{ lib, buildPythonPackage, fetchPypi, pytestCheckHook, matplotlib
, nibabel, numpy, pandas, scikitlearn, scipy, joblib, requests }:
, nibabel, numpy, pandas, scikit-learn, scipy, joblib, requests }:
buildPythonPackage rec {
pname = "nilearn";
@ -20,7 +20,7 @@ buildPythonPackage rec {
numpy
pandas
requests
scikitlearn
scikit-learn
scipy
];

View File

@ -1,5 +1,5 @@
{ lib, buildPythonPackage, fetchFromGitHub, geopandas, descartes, matplotlib, networkx, numpy
, pandas, requests, Rtree, shapely, folium, scikitlearn, scipy}:
, pandas, requests, Rtree, shapely, folium, scikit-learn, scipy}:
buildPythonPackage rec {
pname = "osmnx";
@ -12,7 +12,7 @@ buildPythonPackage rec {
sha256 = "1k3y5kl4k93vxaxyanc040x44s2fyyc3m1ndy2j3kg0037z8ad4z";
};
propagatedBuildInputs = [ geopandas descartes matplotlib networkx numpy pandas requests Rtree shapely folium scikitlearn scipy ];
propagatedBuildInputs = [ geopandas descartes matplotlib networkx numpy pandas requests Rtree shapely folium scikit-learn scipy ];
# requires network
doCheck = false;

View File

@ -6,7 +6,7 @@
, joblib
, matplotlib
, numpy
, scikitlearn
, scikit-learn
, scipy
, pytestCheckHook
}:
@ -26,7 +26,7 @@ buildPythonPackage rec {
joblib
matplotlib
numpy
scikitlearn
scikit-learn
scipy
];

View File

@ -3,7 +3,7 @@
, fetchFromGitHub
, isPy27
, pandas
, scikitlearn
, scikit-learn
, pytestCheckHook
}:
@ -23,7 +23,7 @@ buildPythonPackage rec {
propagatedBuildInputs = [
pandas
scikitlearn
scikit-learn
];
meta = with lib; {

View File

@ -4,7 +4,7 @@
, scipy
, numpy
, numba
, scikitlearn
, scikit-learn
, pytest
, pythonOlder
}:
@ -25,7 +25,7 @@ buildPythonPackage rec {
scipy
numpy
numba
scikitlearn
scikit-learn
];
checkInputs = [

View File

@ -2,7 +2,7 @@
, buildPythonPackage
, fetchPypi
, nose
, scikitlearn
, scikit-learn
, scipy
, numba
, llvmlite
@ -19,7 +19,7 @@ buildPythonPackage rec {
};
propagatedBuildInputs = [
scikitlearn
scikit-learn
scipy
numba
llvmlite

View File

@ -3,7 +3,7 @@
, fetchFromGitHub
, isPy27
, numpy
, scikitlearn
, scikit-learn
, pytestCheckHook
, pytorch
, torchvision
@ -26,7 +26,7 @@ buildPythonPackage rec {
propagatedBuildInputs = [
numpy
pytorch
scikitlearn
scikit-learn
torchvision
tqdm
];

View File

@ -14,7 +14,7 @@
, qiskit-ignis
, qiskit-terra
, quandl
, scikitlearn
, scikit-learn
, yfinance
# Optional inputs
, withTorch ? false
@ -59,7 +59,7 @@ buildPythonPackage rec {
qiskit-terra
qiskit-ignis
quandl
scikitlearn
scikit-learn
yfinance
] ++ lib.optionals (withTorch) [ pytorch ]
++ lib.optionals (withPyscf) [ pyscf ]

View File

@ -5,7 +5,7 @@
, python
, numpy
, qiskit-terra
, scikitlearn
, scikit-learn
, scipy
# Optional package inputs
, withVisualization ? false
@ -44,7 +44,7 @@ buildPythonPackage rec {
propagatedBuildInputs = [
numpy
qiskit-terra
scikitlearn
scikit-learn
scipy
] ++ lib.optionals (withCvx) [ cvxpy ]
++ lib.optionals (withVisualization) [ matplotlib ]

View File

@ -5,7 +5,7 @@
, cython
, numpy
, scipy
, scikitlearn
, scikit-learn
, persim
, pytest
}:
@ -28,7 +28,7 @@ buildPythonPackage rec {
cython
numpy
scipy
scikitlearn
scikit-learn
persim
];

View File

@ -12,7 +12,7 @@
, pandas
, scipy
, hdmedians
, scikitlearn
, scikit-learn
, coverage
, python
, isPy3k
@ -30,7 +30,7 @@ buildPythonPackage rec {
buildInputs = [ cython ];
checkInputs = [ coverage ];
propagatedBuildInputs = [ lockfile cachecontrol decorator ipython matplotlib natsort numpy pandas scipy hdmedians scikitlearn ];
propagatedBuildInputs = [ lockfile cachecontrol decorator ipython matplotlib natsort numpy pandas scipy hdmedians scikit-learn ];
# cython package not included for tests
doCheck = false;

View File

@ -7,7 +7,8 @@
, glibcLocales
, numpy
, scipy
, pytest
, pytestCheckHook
, pytest-xdist
, pillow
, cython
, joblib
@ -54,17 +55,30 @@ buildPythonPackage rec {
joblib
threadpoolctl
];
checkInputs = [ pytest ];
checkInputs = [ pytestCheckHook pytest-xdist ];
LC_ALL="en_US.UTF-8";
doCheck = !stdenv.isAarch64;
# Skip test_feature_importance_regression - does web fetch
checkPhase = ''
cd $TMPDIR
HOME=$TMPDIR OMP_NUM_THREADS=1 pytest -k "not test_feature_importance_regression" --pyargs sklearn
preBuild = ''
export SKLEARN_BUILD_PARALLEL=$NIX_BUILD_CORES
'';
doCheck = !stdenv.isAarch64;
# Skip test_feature_importance_regression - does web fetch
disabledTests = [ "test_feature_importance_regression" ];
pytestFlagsArray = [ "-n" "$NIX_BUILD_CORES" "--pyargs" "sklearn" ];
preCheck = ''
cd $TMPDIR
export HOME=$TMPDIR
export OMP_NUM_THREADS=1
'';
pythonImportsCheck = [ "sklearn" ];
meta = with lib; {
description = "A set of python modules for machine learning and data mining";
changelog = let

View File

@ -5,7 +5,7 @@
, matplotlib
, numpy
, scipy
, scikitlearn
, scikit-learn
, pyaml
, pytestCheckHook
}:
@ -26,7 +26,7 @@ buildPythonPackage rec {
matplotlib
numpy
scipy
scikitlearn
scikit-learn
pyaml
];

View File

@ -3,7 +3,7 @@
, fetchFromGitHub
, numpy
, scipy
, scikitlearn
, scikit-learn
, matplotlib
, numba
, umap-learn
@ -32,7 +32,7 @@ buildPythonPackage rec {
propagatedBuildInputs = [
numpy
scipy
scikitlearn
scikit-learn
matplotlib
numba
umap-learn

View File

@ -2,7 +2,7 @@
, buildPythonPackage
, fetchFromGitHub
, numpy
, scikitlearn
, scikit-learn
, perl
, pytestCheckHook
}:
@ -27,7 +27,7 @@ buildPythonPackage rec {
propagatedBuildInputs = [
numpy
scikitlearn
scikit-learn
];
checkInputs = [

View File

@ -5,7 +5,7 @@
, pytestCheckHook
, numpy
, scipy
, scikitlearn
, scikit-learn
, pandas
, tqdm
, slicer
@ -30,7 +30,7 @@ buildPythonPackage rec {
propagatedBuildInputs = [
numpy
scipy
scikitlearn
scikit-learn
pandas
tqdm
slicer

View File

@ -1,4 +1,4 @@
{ lib, buildPythonPackage, fetchFromGitHub, fetchpatch, numpy, scipy, deap, scikitlearn, python }:
{ lib, buildPythonPackage, fetchFromGitHub, fetchpatch, numpy, scipy, deap, scikit-learn, python }:
buildPythonPackage rec {
pname = "sklearn-deap";
@ -20,7 +20,7 @@ buildPythonPackage rec {
})
];
propagatedBuildInputs = [ numpy scipy deap scikitlearn ];
propagatedBuildInputs = [ numpy scipy deap scikit-learn ];
checkPhase = ''
${python.interpreter} test.py

View File

@ -8,7 +8,7 @@
, numpy
, pandas
, pytorch
, scikitlearn
, scikit-learn
, scipy
, tabulate
, tqdm
@ -23,7 +23,7 @@ buildPythonPackage rec {
sha256 = "9910f97339e654c8d38e0075d87b735e69e5eb11db59c527fb36705b30c8d0a4";
};
propagatedBuildInputs = [ numpy pytorch scikitlearn scipy tabulate tqdm ];
propagatedBuildInputs = [ numpy pytorch scikit-learn scipy tabulate tqdm ];
checkInputs = [ pytest pytestcov flaky pandas pytestCheckHook ];
disabledTests = [

View File

@ -9,7 +9,7 @@
, pyphen
, pytest
, requests
, scikitlearn
, scikit-learn
, scipy
, spacy
, srsly
@ -35,7 +35,7 @@ buildPythonPackage rec {
pyemd
pyphen
requests
scikitlearn
scikit-learn
scipy
spacy
srsly

View File

@ -3,7 +3,7 @@
, fetchFromGitHub
, nose
, numpy
, scikitlearn
, scikit-learn
, scipy
, numba
, pynndescent
@ -24,7 +24,7 @@ buildPythonPackage rec {
propagatedBuildInputs = [
numpy
scikitlearn
scikit-learn
scipy
numba
pynndescent

View File

@ -11,7 +11,7 @@
, pygments
, numpy
, scipy
, scikitlearn }:
, scikit-learn }:
buildPythonPackage rec {
pname = "vowpalwabbit";
@ -36,7 +36,7 @@ buildPythonPackage rec {
propagatedBuildInputs = [
numpy
scikitlearn
scikit-learn
scipy
];

View File

@ -4,7 +4,7 @@
, fetchzip
, cython
, numpy
, scikitlearn
, scikit-learn
, six
, setuptools_scm
, gcc
@ -30,7 +30,7 @@ buildPythonPackage rec {
nativeBuildInputs = [ setuptools_scm gcc ];
propagatedBuildInputs = [ cython numpy scikitlearn six ];
propagatedBuildInputs = [ cython numpy scikit-learn six ];
checkInputs = [ pytest pytestcov ];

View File

@ -2,7 +2,7 @@
, pytestCheckHook
, cmake
, scipy
, scikitlearn
, scikit-learn
, stdenv
, xgboost
, substituteAll
@ -22,7 +22,7 @@ buildPythonPackage {
propagatedBuildInputs = [ scipy ];
checkInputs = [
pytestCheckHook
scikitlearn
scikit-learn
pandas
matplotlib
graphviz

View File

@ -7362,10 +7362,12 @@ in {
scikitimage = callPackage ../development/python-modules/scikit-image { };
scikitlearn = callPackage ../development/python-modules/scikitlearn {
scikit-learn = callPackage ../development/python-modules/scikit-learn {
inherit (pkgs) gfortran glibcLocales;
};
scikitlearn = self.scikit-learn;
scikit-optimize = callPackage ../development/python-modules/scikit-optimize { };
scikits-odes = callPackage ../development/python-modules/scikits-odes { };

View File

@ -524,7 +524,7 @@ with self; with super; {
scandir = callPackage ../development/python-modules/scandir { };
scikitlearn = callPackage ../development/python-modules/scikitlearn/0.20.nix {
scikit-learn = callPackage ../development/python-modules/scikit-learn/0.20.nix {
inherit (pkgs) gfortran glibcLocales;
};