summary refs log tree commit diff
path: root/pkgs/development/python-modules/imbalanced-learn
diff options
context:
space:
mode:
authorxeji <xeji@cat3.de>2018-03-31 19:49:52 +0200
committerxeji <xeji@cat3.de>2018-04-01 01:58:22 +0200
commit6b2bc4b5d1958982c3083f580026ea04b47452dd (patch)
tree91628c441d4295825f00e4b2004b01f57fd604e2 /pkgs/development/python-modules/imbalanced-learn
parentfbac1cbc06568380b538e81546e9d3b1715cab14 (diff)
downloadnixpkgs-6b2bc4b5d1958982c3083f580026ea04b47452dd.tar
nixpkgs-6b2bc4b5d1958982c3083f580026ea04b47452dd.tar.gz
nixpkgs-6b2bc4b5d1958982c3083f580026ea04b47452dd.tar.bz2
nixpkgs-6b2bc4b5d1958982c3083f580026ea04b47452dd.tar.lz
nixpkgs-6b2bc4b5d1958982c3083f580026ea04b47452dd.tar.xz
nixpkgs-6b2bc4b5d1958982c3083f580026ea04b47452dd.tar.zst
nixpkgs-6b2bc4b5d1958982c3083f580026ea04b47452dd.zip
pythonPackages.imbalanced-learn: 0.3.2 -> 0.3.3, fix build
minor bump, fix tests, move to development/python-modules
Diffstat (limited to 'pkgs/development/python-modules/imbalanced-learn')
-rw-r--r--pkgs/development/python-modules/imbalanced-learn/default.nix26
1 files changed, 26 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/imbalanced-learn/default.nix b/pkgs/development/python-modules/imbalanced-learn/default.nix
new file mode 100644
index 00000000000..65afe116510
--- /dev/null
+++ b/pkgs/development/python-modules/imbalanced-learn/default.nix
@@ -0,0 +1,26 @@
+{ stdenv, buildPythonPackage, fetchPypi, scikitlearn, pandas, nose, pytest }:
+
+buildPythonPackage rec {
+  pname = "imbalanced-learn";
+  version = "0.3.3";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "1r5js9kw6rvmfvxxkfjlcxv5xn5h19qvg7d41byilxwq9kd515g4";
+  };
+
+  propagatedBuildInputs = [ scikitlearn ];
+  checkInputs = [ nose pytest pandas ];
+  checkPhase = ''
+    export HOME=$PWD
+    # skip some tests that fail because of minimal rounding errors
+    py.test imblearn --ignore=imblearn/metrics/classification.py
+    py.test doc/*.rst
+  '';
+
+  meta = with stdenv.lib; {
+    description = "Library offering a number of re-sampling techniques commonly used in datasets showing strong between-class imbalance";
+    homepage = https://github.com/scikit-learn-contrib/imbalanced-learn;
+    license = licenses.mit;
+  };
+}