2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2020-11-04 07:45:03 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, isPy27
|
|
|
|
, pytestCheckHook
|
|
|
|
, pandas
|
|
|
|
, pytorch
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "slicer";
|
2020-11-29 14:04:42 +00:00
|
|
|
version = "0.0.5";
|
2020-11-04 07:45:03 +00:00
|
|
|
disabled = isPy27;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-11-29 14:04:42 +00:00
|
|
|
sha256 = "8c0fe9845056207d7344d5850e93551f9be20656178d443332aa02da9c71ba44";
|
2020-11-04 07:45:03 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ pytestCheckHook pandas pytorch ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-11-04 07:45:03 +00:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|