mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-20 11:53:51 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
37 lines
795 B
Nix
37 lines
795 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, isPy27
|
|
, pytestCheckHook
|
|
, pandas
|
|
, torch
|
|
, scipy
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "slicer";
|
|
version = "0.0.7";
|
|
disabled = isPy27;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "f5d5f7b45f98d155b9c0ba6554fa9770c6b26d5793a3e77a1030fb56910ebeec";
|
|
};
|
|
|
|
nativeCheckInputs = [ pytestCheckHook pandas torch 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;
|
|
};
|
|
}
|