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