depot/third_party/nixpkgs/pkgs/development/python-modules/mlxtend/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

59 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
isPy27,
setuptools,
pytestCheckHook,
scipy,
numpy,
scikit-learn,
pandas,
matplotlib,
joblib,
}:
buildPythonPackage rec {
pname = "mlxtend";
version = "0.23.1";
pyproject = true;
disabled = isPy27;
src = fetchFromGitHub {
owner = "rasbt";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-FlP6UqX/Ejk9c3Enm0EJ0xqy7iOhDlFqjWWxd4VIczQ=";
};
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [
scipy
numpy
scikit-learn
pandas
matplotlib
joblib
];
nativeCheckInputs = [ pytestCheckHook ];
pytestFlagsArray = [ "-sv" ];
disabledTestPaths = [
# image tests download files over the network
"mlxtend/image"
];
meta = with lib; {
description = "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;
# incompatible with nixpkgs scikit-learn version
broken = true;
};
}