My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/slicer/default.nix

36 lines
793 B

{ lib
, buildPythonPackage
, fetchPypi
, isPy27
, pytestCheckHook
, pandas
, pytorch
, scipy
}:
buildPythonPackage rec {
pname = "slicer";
version = "0.0.7";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
sha256 = "f5d5f7b45f98d155b9c0ba6554fa9770c6b26d5793a3e77a1030fb56910ebeec";
};
checkInputs = [ pytestCheckHook pandas pytorch scipy ];
disabledTests = [
# IndexError: too many indices for array
"test_slicer_sparse"
"test_operations_2d"
];
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;
};
}