Unverified Commit 9d055d6a authored by Gaétan Lepage's avatar Gaétan Lepage Committed by GitHub
Browse files

python3Packages.pymc: fix (#436717)

parents 62a1bd1a bdf2b9ee
Loading
Loading
Loading
Loading
+11 −4
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  fetchpatch2,

  # build-system
  setuptools,
@@ -32,15 +33,21 @@ buildPythonPackage rec {
    hash = "sha256-zh6FsCEviuyqapguTrUDsWKq70ef0IKRhnn2dkgQ/KA=";
  };

  patches = [
    # TODO: remove at next release
    # https://github.com/pymc-devs/pytensor/pull/1471
    (fetchpatch2 {
      name = "pytensor-2-32-compat";
      url = "https://github.com/pymc-devs/pymc/commit/59176b6adda88971e546a0cf93ca04424af5197f.patch";
      hash = "sha256-jkDwlKwxbn9DwpkxEbSXk/kbGjT/Xu8bsZHFBWYpMgA=";
    })
  ];

  build-system = [
    setuptools
    versioneer
  ];

  pythonRelaxDeps = [
    "pytensor"
  ];

  dependencies = [
    arviz
    cachetools
+6 −0
Original line number Diff line number Diff line
@@ -83,6 +83,11 @@ buildPythonPackage rec {
  '';

  disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [
    # Numerical assertion error
    # tests.unittest_tools.WrongValue: WrongValue
    "test_op_sd"
    "test_op_ss"

    # pytensor.link.c.exceptions.CompileError: Compilation failed (return status=1)
    "OpFromGraph"
    "add"
@@ -123,6 +128,7 @@ buildPythonPackage rec {
    "test_modes"
    "test_mul_s_v_grad"
    "test_multiple_outputs"
    "test_nnet"
    "test_not_inplace"
    "test_numba_Cholesky_grad"
    "test_numba_pad"