Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.2 kB · 65 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566{ lib, fetchPypi, buildPythonPackage,
matplotlib, numpy, scipy, tqdm, scikit-learn, scikit-image,
pytestCheckHook, pythonOlder,}:
buildPythonPackage rec { pname = "lime"; version = "0.2.0.1"; format = "setuptools";
disabled = pythonOlder "3.5";
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 ]; };}