5c370c0b2a
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
41 lines
807 B
Nix
41 lines
807 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, dos2unix
|
|
, fetchpatch
|
|
, 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;
|
|
};
|
|
}
|