blob: 62415293eec043993bbc1114fa25b23a13ff6b05 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
{
lib,
fetchPypi,
buildPythonPackage,
matplotlib,
numpy,
scipy,
tqdm,
scikit-learn,
scikit-image,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "lime";
version = "0.2.0.1";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-dpYOTwVf61Pom1AiODuvyHtj8lusYmWYSwozPRpX94E=";
};
postPatch = ''
substituteInPlace lime/tests/test_scikit_image.py \
--replace-fail "random_seed" "rng"
'';
propagatedBuildInputs = [
matplotlib
numpy
scipy
tqdm
scikit-learn
scikit-image
];
nativeCheckInputs = [ pytestCheckHook ];
disabledTestPaths = [
# touches network
"lime/tests/test_lime_text.py"
];
pythonImportsCheck = [
"lime.exceptions"
"lime.explanation"
"lime.lime_base"
"lime.lime_image"
"lime.lime_text"
];
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 = lib.licenses.bsd2;
maintainers = with lib.maintainers; [ khaser ];
};
}
|