Unverified Commit d74a983e authored by OTABI Tomoya's avatar OTABI Tomoya Committed by GitHub
Browse files

Merge pull request #314756 from NixOS/backport-314647-to-release-24.05

[Backport release-24.05] python312Packages.hyppo: unbreak
parents 65c3e1cd f623509c
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 ];
  };