From ffc63504f0ce0d8f0bf109027a71907273b76691 Mon Sep 17 00:00:00 2001 From: wxt <3264117476@qq.com> Date: Fri, 15 Nov 2024 18:15:17 +0800 Subject: [PATCH] python3Packages.lime: fix build (cherry picked from commit 04d2194ecde6195480ca3e690ad0d38fb32fbe9e) --- pkgs/development/python-modules/lime/default.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/lime/default.nix b/pkgs/development/python-modules/lime/default.nix index 39055c341f6f..d60ce35878e1 100644 --- a/pkgs/development/python-modules/lime/default.nix +++ b/pkgs/development/python-modules/lime/default.nix @@ -26,6 +26,11 @@ buildPythonPackage rec { hash = "sha256-dpYOTwVf61Pom1AiODuvyHtj8lusYmWYSwozPRpX94E="; }; + postPatch = '' + substituteInPlace lime/tests/test_scikit_image.py \ + --replace-fail "random_seed" "rng" + ''; + propagatedBuildInputs = [ matplotlib numpy @@ -50,11 +55,11 @@ buildPythonPackage rec { "lime.lime_text" ]; - meta = with lib; { + meta = { description = "Local Interpretable Model-Agnostic Explanations for machine learning classifiers"; homepage = "https://github.com/marcotcr/lime"; changelog = "https://github.com/marcotcr/lime/releases/tag/${version}"; - license = licenses.bsd2; + license = lib.licenses.bsd2; maintainers = with lib.maintainers; [ khaser ]; }; }