2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-11-30 08:33:03 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, isPy27
|
|
|
|
, pytestCheckHook
|
|
|
|
, scipy
|
|
|
|
, numpy
|
2021-05-20 23:08:51 +00:00
|
|
|
, scikit-learn
|
2020-11-30 08:33:03 +00:00
|
|
|
, pandas
|
|
|
|
, matplotlib
|
|
|
|
, joblib
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "mlxtend";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "0.22.0";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2020-11-30 08:33:03 +00:00
|
|
|
disabled = isPy27;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rasbt";
|
|
|
|
repo = pname;
|
2022-08-12 12:06:08 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-11-16 04:20:00 +00:00
|
|
|
hash = "sha256-YLCNLpg2qrdFon0/gdggJd9XovHwRHAdleBFQc18qzE=";
|
2020-11-30 08:33:03 +00:00
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2020-11-30 08:33:03 +00:00
|
|
|
# image tests download files over the network
|
|
|
|
pytestFlagsArray = [ "-sv" "--ignore=mlxtend/image" ];
|
|
|
|
# Fixed in master, but failing in release version
|
|
|
|
# see: https://github.com/rasbt/mlxtend/pull/721
|
|
|
|
disabledTests = [ "test_variance_explained_ratio" ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
scipy
|
|
|
|
numpy
|
2021-05-20 23:08:51 +00:00
|
|
|
scikit-learn
|
2020-11-30 08:33:03 +00:00
|
|
|
pandas
|
|
|
|
matplotlib
|
|
|
|
joblib
|
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-11-30 08:33:03 +00:00
|
|
|
description = "A library of Python tools and extensions for data science";
|
|
|
|
homepage = "https://github.com/rasbt/mlxtend";
|
|
|
|
license= licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ evax ];
|
|
|
|
platforms = platforms.unix;
|
2021-05-20 23:08:51 +00:00
|
|
|
# incompatible with nixpkgs scikit-learn version
|
2021-02-17 17:02:09 +00:00
|
|
|
broken = true;
|
2020-11-30 08:33:03 +00:00
|
|
|
};
|
|
|
|
}
|