fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
44 lines
817 B
Nix
44 lines
817 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
dos2unix,
|
|
fetchPypi,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
pandas,
|
|
torch,
|
|
scipy,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "slicer";
|
|
version = "0.0.8";
|
|
pyproject = true;
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-LnVTr3PwwMLTVfSvzD7Pl8byFW/PRZOVXD9Wz2xNbrc=";
|
|
};
|
|
|
|
prePatch = ''
|
|
dos2unix slicer/*
|
|
'';
|
|
|
|
nativeBuildInputs = [ dos2unix ];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
pandas
|
|
torch
|
|
scipy
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Wraps tensor-like objects and provides a uniform slicing interface via __getitem__";
|
|
homepage = "https://github.com/interpretml/slicer";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ evax ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|