[Backport release-24.11] python3Packages.lime: fix build (#356302)

This commit is contained in:
Aleksana 2024-11-17 00:16:22 +08:00 committed by GitHub
commit f2e96fce64
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 ];
};
}