1{ 2 lib, 3 buildPythonPackage, 4 dos2unix, 5 fetchpatch, 6 fetchPypi, 7 pytestCheckHook, 8 pythonOlder, 9 pandas, 10 torch, 11 scipy, 12}: 13 14buildPythonPackage rec { 15 pname = "slicer"; 16 version = "0.0.8"; 17 pyproject = true; 18 disabled = pythonOlder "3.8"; 19 20 src = fetchPypi { 21 inherit pname version; 22 hash = "sha256-LnVTr3PwwMLTVfSvzD7Pl8byFW/PRZOVXD9Wz2xNbrc="; 23 }; 24 25 prePatch = '' 26 dos2unix slicer/* 27 ''; 28 29 nativeBuildInputs = [ dos2unix ]; 30 31 nativeCheckInputs = [ 32 pytestCheckHook 33 pandas 34 torch 35 scipy 36 ]; 37 38 meta = with lib; { 39 description = "Wraps tensor-like objects and provides a uniform slicing interface via __getitem__"; 40 homepage = "https://github.com/interpretml/slicer"; 41 license = licenses.mit; 42 maintainers = with maintainers; [ evax ]; 43 platforms = platforms.unix; 44 }; 45}