1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 isPy27,
6 setuptools,
7 pytestCheckHook,
8 scipy,
9 numpy,
10 scikit-learn,
11 pandas,
12 matplotlib,
13 joblib,
14}:
15
16buildPythonPackage rec {
17 pname = "mlxtend";
18 version = "0.23.3";
19 pyproject = true;
20
21 disabled = isPy27;
22
23 src = fetchFromGitHub {
24 owner = "rasbt";
25 repo = pname;
26 tag = "v${version}";
27 hash = "sha256-c6I0dwu4y/Td2G6m2WP/52W4noQUmQMDvpzXA9RZauo=";
28 };
29
30 build-system = [ setuptools ];
31
32 dependencies = [
33 scipy
34 numpy
35 scikit-learn
36 pandas
37 matplotlib
38 joblib
39 ];
40
41 nativeCheckInputs = [ pytestCheckHook ];
42
43 pytestFlagsArray = [ "-sv" ];
44
45 disabledTestPaths = [
46 "mlxtend/evaluate/f_test.py" # need clean
47 "mlxtend/evaluate/tests/test_feature_importance.py" # urlopen error
48 "mlxtend/evaluate/tests/test_bias_variance_decomp.py" # keras.api._v2
49 "mlxtend/evaluate/tests/test_bootstrap_point632.py" # keras.api._v2
50 ];
51
52 meta = {
53 description = "Library of Python tools and extensions for data science";
54 homepage = "https://github.com/rasbt/mlxtend";
55 license = lib.licenses.bsd3;
56 maintainers = with lib.maintainers; [ evax ];
57 platforms = lib.platforms.unix;
58 };
59}