13 buildPythonPackage rec {
16 format = "setuptools";
17 disabled = pythonOlder "3.6";
20 inherit pname version;
21 hash = "sha256-9dX3tF+Y0VW5wLplVPqXcMaybVeTo+d6EDD7VpEOvuw=";
29 # these patches add support for numpy>=1.24
31 url = "https://github.com/interpretml/slicer/commit/028e09e639c4a3c99abe1d537cce30af2eebb081.patch";
32 hash = "sha256-jh/cbz7cx2ks6jMNh1gI1n5RS/OHBtSIDZRxUGyrl/I=";
35 url = "https://github.com/interpretml/slicer/commit/d4bb09f136d7e1f64711633c16a37e7bee738696.patch";
36 hash = "sha256-9rh99s4JWF4iKClZ19jvqSeRulL32xB5Use8PGkh/SA=";
39 url = "https://github.com/interpretml/slicer/commit/74b3683a5a7bd982f9eaaf8d8d665dfdaf2c6604.patch";
40 hash = "sha256-R3zsC3udYPFUT93eRhb6wyc9S5n2wceiOunWJ8K+648=";
48 nativeCheckInputs = [ pytestCheckHook pandas torch scipy ];
51 # IndexError: too many indices for array
57 description = "Wraps tensor-like objects and provides a uniform slicing interface via __getitem__";
58 homepage = "https://github.com/interpretml/slicer";
59 license = licenses.mit;
60 maintainers = with maintainers; [ evax ];
61 platforms = platforms.unix;