about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTimo Kaufmann <timokau@zoho.com>2020-05-12 11:29:17 +0000
committerGitHub <noreply@github.com>2020-05-12 11:29:17 +0000
commitebf030b4ff2dd73fb2a093fa23f1045120493dda (patch)
treeeb02922284dc451ef83701cfb5d75d57e4ab6dd8
parent90c0191735bc729acd36e4ba72ef3ffd88f679c6 (diff)
parentcd45ab076dcd3168644b67a88bd85584619aa187 (diff)
downloadnixlib-ebf030b4ff2dd73fb2a093fa23f1045120493dda.tar
nixlib-ebf030b4ff2dd73fb2a093fa23f1045120493dda.tar.gz
nixlib-ebf030b4ff2dd73fb2a093fa23f1045120493dda.tar.bz2
nixlib-ebf030b4ff2dd73fb2a093fa23f1045120493dda.tar.lz
nixlib-ebf030b4ff2dd73fb2a093fa23f1045120493dda.tar.xz
nixlib-ebf030b4ff2dd73fb2a093fa23f1045120493dda.tar.zst
nixlib-ebf030b4ff2dd73fb2a093fa23f1045120493dda.zip
Merge pull request #87527 from timokau/scikitlearn-0.22.2
 python.pkgs.scikitlearn: 0.21.3 -> 0.22.2.post1 
-rw-r--r--pkgs/development/python-modules/scikitlearn/default.nix19
1 files changed, 8 insertions, 11 deletions
diff --git a/pkgs/development/python-modules/scikitlearn/default.nix b/pkgs/development/python-modules/scikitlearn/default.nix
index c7519ee39624..454e631634bf 100644
--- a/pkgs/development/python-modules/scikitlearn/default.nix
+++ b/pkgs/development/python-modules/scikitlearn/default.nix
@@ -12,13 +12,13 @@
 
 buildPythonPackage rec {
   pname = "scikit-learn";
-  version = "0.21.3";
+  version = "0.22.2.post1";
   # UnboundLocalError: local variable 'message' referenced before assignment
   disabled = stdenv.isi686;  # https://github.com/scikit-learn/scikit-learn/issues/5534
 
   src = fetchPypi {
     inherit pname version;
-    sha256 = "eb9b8ebf59eddd8b96366428238ab27d05a19e89c5516ce294abc35cea75d003";
+    sha256 = "0z81n13dxvd6qwq5lsnzw2machmxbirhdhr73v90fi55ic9qslsp";
   };
 
   buildInputs = [
@@ -41,15 +41,6 @@ buildPythonPackage rec {
   ];
   checkInputs = [ pytest ];
 
-  patches = [
-    # Fixes tests by changing threshold of a test-case that broke
-    # with numpy versions >= 1.17. This should be removed for versions > 0.21.2.
-	( fetchpatch {
-	  url = "https://github.com/scikit-learn/scikit-learn/commit/b730befc821caec5b984d9ff3aa7bc4bd7f4d9bb.patch";
-	  sha256 = "0z36m05mv6d494qwq0688rgwa7c4bbnm5s2rcjlrp29fwn3fy1bv";
-	})
-  ];
-
   LC_ALL="en_US.UTF-8";
 
   doCheck = !stdenv.isAarch64;
@@ -61,6 +52,12 @@ buildPythonPackage rec {
 
   meta = with stdenv.lib; {
     description = "A set of python modules for machine learning and data mining";
+    changelog = let
+      major = versions.major version;
+      minor = versions.minor version;
+      dashVer = replaceChars ["."] ["-"] version;
+    in
+      "https://scikit-learn.org/stable/whats_new/v${major}.${minor}.html#version-${dashVer}";
     homepage = "https://scikit-learn.org";
     license = licenses.bsd3;
     maintainers = with maintainers; [ ];