1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, isPy27 5, pytestCheckHook 6, scipy 7, numpy 8, scikit-learn 9, pandas 10, matplotlib 11, joblib 12}: 13 14buildPythonPackage rec { 15 pname = "mlxtend"; 16 version = "0.22.0"; 17 disabled = isPy27; 18 19 src = fetchFromGitHub { 20 owner = "rasbt"; 21 repo = pname; 22 rev = "refs/tags/v${version}"; 23 hash = "sha256-YLCNLpg2qrdFon0/gdggJd9XovHwRHAdleBFQc18qzE="; 24 }; 25 26 nativeCheckInputs = [ pytestCheckHook ]; 27 # image tests download files over the network 28 pytestFlagsArray = [ "-sv" "--ignore=mlxtend/image" ]; 29 # Fixed in master, but failing in release version 30 # see: https://github.com/rasbt/mlxtend/pull/721 31 disabledTests = [ "test_variance_explained_ratio" ]; 32 33 propagatedBuildInputs = [ 34 scipy 35 numpy 36 scikit-learn 37 pandas 38 matplotlib 39 joblib 40 ]; 41 42 meta = with lib; { 43 description = "A library of Python tools and extensions for data science"; 44 homepage = "https://github.com/rasbt/mlxtend"; 45 license= licenses.bsd3; 46 maintainers = with maintainers; [ evax ]; 47 platforms = platforms.unix; 48 # incompatible with nixpkgs scikit-learn version 49 broken = true; 50 }; 51}