git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #102463 from evax/mlxtend-0.17.3

python3Packages.mlxtend: init at 0.17.3

commit9999a089546fc924357c4b3a68a58868401a1b31 authorSandro <sandro.jaeckel@gmail.com> dateWed 25 Nov 2020, 03:25 (6 years ago) parent099df386c0cf31
2 files changed+51
pkgs/development/python-modules/mlxtend/default.nix+49 pkgs/top-level/python-packages.nix+2
pkgs/development/python-modules/mlxtend/default.nixnew file+49
@@ -0,0 +1,49 @@
1+{ stdenv
2+, buildPythonPackage
3+, fetchFromGitHub
4+, isPy27
5+, pytestCheckHook
6+, scipy
7+, numpy
8+, scikitlearn
9+, pandas
10+, matplotlib
11+, joblib
12+}:
13+
14+buildPythonPackage rec {
15+ pname = "mlxtend";
16+ version = "0.17.3";
17+ disabled = isPy27;
18+
19+ src = fetchFromGitHub {
20+ owner = "rasbt";
21+ repo = pname;
22+ rev = version;
23+ sha256 = "1515wgmj5rhwpmky7apmmvys1630sfg534fai6559s13hp11pdcl";
24+ };
25+
26+ checkInputs = [ 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+ scikitlearn
37+ pandas
38+ matplotlib
39+ joblib
40+ ];
41+
42+ meta = with stdenv.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+ };
49+}
pkgs/top-level/python-packages.nix+2
@@ -3793,6 +3793,8 @@ in {
37933793
37943794 mlrose = callPackage ../development/python-modules/mlrose { };
37953795
3796+ mlxtend = callPackage ../development/python-modules/mlxtend { };
3797+
37963798 mmh3 = callPackage ../development/python-modules/mmh3 { };
37973799
37983800 mmpython = callPackage ../development/python-modules/mmpython { };