nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 62 lines 1.2 kB view raw
1{ 2 lib, 3 fetchPypi, 4 buildPythonPackage, 5 6 matplotlib, 7 numpy, 8 scipy, 9 tqdm, 10 scikit-learn, 11 scikit-image, 12 13 pytestCheckHook, 14}: 15 16buildPythonPackage rec { 17 pname = "lime"; 18 version = "0.2.0.1"; 19 format = "setuptools"; 20 21 src = fetchPypi { 22 inherit pname version; 23 hash = "sha256-dpYOTwVf61Pom1AiODuvyHtj8lusYmWYSwozPRpX94E="; 24 }; 25 26 postPatch = '' 27 substituteInPlace lime/tests/test_scikit_image.py \ 28 --replace-fail "random_seed" "rng" 29 ''; 30 31 propagatedBuildInputs = [ 32 matplotlib 33 numpy 34 scipy 35 tqdm 36 scikit-learn 37 scikit-image 38 ]; 39 40 nativeCheckInputs = [ pytestCheckHook ]; 41 42 disabledTestPaths = [ 43 # touches network 44 "lime/tests/test_lime_text.py" 45 ]; 46 47 pythonImportsCheck = [ 48 "lime.exceptions" 49 "lime.explanation" 50 "lime.lime_base" 51 "lime.lime_image" 52 "lime.lime_text" 53 ]; 54 55 meta = { 56 description = "Local Interpretable Model-Agnostic Explanations for machine learning classifiers"; 57 homepage = "https://github.com/marcotcr/lime"; 58 changelog = "https://github.com/marcotcr/lime/releases/tag/${version}"; 59 license = lib.licenses.bsd2; 60 maintainers = with lib.maintainers; [ khaser ]; 61 }; 62}