1{ lib
2, buildPythonPackage
3, fetchPypi
4, isPy27
5, pytestCheckHook
6, pandas
7, pytorch
8}:
9
10buildPythonPackage rec {
11 pname = "slicer";
12 version = "0.0.7";
13 disabled = isPy27;
14
15 src = fetchPypi {
16 inherit pname version;
17 sha256 = "f5d5f7b45f98d155b9c0ba6554fa9770c6b26d5793a3e77a1030fb56910ebeec";
18 };
19
20 checkInputs = [ pytestCheckHook pandas pytorch ];
21
22 meta = with lib; {
23 description = "Wraps tensor-like objects and provides a uniform slicing interface via __getitem__";
24 homepage = "https://github.com/interpretml/slicer";
25 license = licenses.mit;
26 maintainers = with maintainers; [ evax ];
27 platforms = platforms.unix;
28 };
29}