2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
pythonOlder,
|
|
|
|
fetchFromGitHub,
|
|
|
|
setuptools,
|
|
|
|
pytestCheckHook,
|
|
|
|
autograd,
|
|
|
|
numba,
|
|
|
|
numpy,
|
|
|
|
scikit-learn,
|
|
|
|
scipy,
|
|
|
|
matplotlib,
|
|
|
|
seaborn,
|
2020-09-25 04:45:31 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "hyppo";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "0.4.0";
|
2024-06-05 15:53:02 +00:00
|
|
|
pyproject = true;
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2021-12-24 04:21:11 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "neurodata";
|
|
|
|
repo = pname;
|
2023-11-16 04:20:00 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-QRE3oSxTEobTQ/7DzCAUOdjzIZmWUn9bgPmJWj6JuZg=";
|
2020-09-25 04:45:31 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
# some of the doctests (4/21) are broken, e.g. unbound variables, nondeterministic with insufficient tolerance, etc.
|
|
|
|
# (note upstream's .circleci/config.yml only tests test_*.py files despite their pytest.ini adding --doctest-modules)
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace pytest.ini --replace-fail "addopts = --doctest-modules" ""
|
|
|
|
'';
|
|
|
|
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
propagatedBuildInputs = [
|
2022-04-27 09:35:20 +00:00
|
|
|
autograd
|
2020-09-25 04:45:31 +00:00
|
|
|
numba
|
|
|
|
numpy
|
2021-05-20 23:08:51 +00:00
|
|
|
scikit-learn
|
2020-09-25 04:45:31 +00:00
|
|
|
scipy
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
matplotlib
|
|
|
|
seaborn
|
|
|
|
];
|
|
|
|
pytestFlagsArray = [
|
|
|
|
"hyppo"
|
2021-05-20 23:08:51 +00:00
|
|
|
];
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/neurodata/hyppo";
|
2022-04-27 09:35:20 +00:00
|
|
|
description = "Python package for multivariate hypothesis testing";
|
2024-06-05 15:53:02 +00:00
|
|
|
changelog = "https://github.com/neurodata/hyppo/releases/tag/v${version}";
|
2022-04-27 09:35:20 +00:00
|
|
|
license = licenses.mit;
|
2020-09-25 04:45:31 +00:00
|
|
|
maintainers = with maintainers; [ bcdarwin ];
|
|
|
|
};
|
|
|
|
}
|