Commit f623509c authored by Ben Darwin's avatar Ben Darwin Committed by github-actions[bot]
Browse files

python312Packages.hyppo: unbreak

Disabled doctests which seem not properly maintained/tested; disabled
test collection of non-source directories (e.g. 'tutorials' contains
some broken code, but no actual tests)

(cherry picked from commit 0eacecad)
parent 7d850e3a
Loading
Loading
Loading
Loading
+13 −5
Original line number Diff line number Diff line
@@ -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 ];
  };