From 9342b56eed56962389be1821431a05b4020622e0 Mon Sep 17 00:00:00 2001 From: Rob Vermaas Date: Thu, 15 Feb 2018 17:19:20 +0100 Subject: [PATCH] imbalanced-learn: init at 0.3.2 --- pkgs/top-level/python-packages.nix | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 44a270b4db1..ee97ab35fe1 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5152,6 +5152,30 @@ in { }; + imbalanced-learn = buildPythonPackage rec { + name = "imbalanced-learn-${version}"; + version = "0.3.2"; + + src = pkgs.fetchurl { + url = "mirror://pypi/i/imbalanced-learn/${name}.tar.gz"; + sha256 = "0j76m0rrsvyqj9bimky9m7b609y5v6crf9apigww3xvcnchhj901"; + }; + + preConfigure = '' + export HOME=$PWD + ''; + + propagatedBuildInputs = with self; [ scikitlearn ]; + buildInputs = with self; [ nose pytest pandas ]; + + meta = { + 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 = with licenses; [ mit ]; + }; + + }; + imread = buildPythonPackage rec { name = "python-imread-${version}"; version = "0.6";