depot/third_party/nixpkgs/pkgs/development/python-modules/slicer/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

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;
};
}