Merge pull request #314647 from bcdarwin/unbreak-python3-hyppo

python312Packages.hyppo: unbreak
This commit is contained in:
OTABI Tomoya
2024-05-26 14:14:55 +09:00
committed by GitHub
@@ -3,6 +3,7 @@
buildPythonPackage,
pythonOlder,
fetchFromGitHub,
setuptools,
pytestCheckHook,
autograd,
numba,
@@ -16,7 +17,7 @@
buildPythonPackage rec {
pname = "hyppo";
version = "0.4.0";
format = "setuptools";
pyproject = true;
disabled = pythonOlder "3.6";
@@ -27,6 +28,14 @@ buildPythonPackage rec {
hash = "sha256-QRE3oSxTEobTQ/7DzCAUOdjzIZmWUn9bgPmJWj6JuZg=";
};
# 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 ];
propagatedBuildInputs = [
autograd
numba
@@ -40,15 +49,14 @@ buildPythonPackage rec {
matplotlib
seaborn
];
disabledTestPaths = [
"docs"
"benchmarks"
"examples"
pytestFlagsArray = [
"hyppo"
];
meta = with lib; {
homepage = "https://github.com/neurodata/hyppo";
description = "Python package for multivariate hypothesis testing";
changelog = "https://github.com/neurodata/hyppo/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ bcdarwin ];
};