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-01-20 10:41:00 +00:00
|
|
|
version = "0.21.0";
|
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-01-20 10:41:00 +00:00
|
|
|
sha256 = "sha256-7G4tIoQGS7/YPpAhUn0CRf8fl/DdjdqySPWgJEL0trA=";
|
2020-11-30 08:33:03 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ pytestCheckHook ];
|
|
|
|
# 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
|
|
|
};
|
|
|
|
}
|