Unverified Commit 956ae9c6 authored by Gaétan Lepage's avatar Gaétan Lepage Committed by GitHub
Browse files

python3Packages.gluonts: disable on python>=3.14 (#485730)

parents ca89f9eb 74e33613
Loading
Loading
Loading
Loading
+11 −7
Original line number Diff line number Diff line
{
  stdenv,
  lib,
  stdenv,
  buildPythonPackage,
  fetchFromGitHub,
  fetchpatch,
  pythonAtLeast,

  # build-system
  setuptools,
@@ -20,7 +21,7 @@
  lightning,
  scipy,

  # test
  # tests
  pytestCheckHook,
  distutils,
  matplotlib,
@@ -30,7 +31,7 @@
  which,
}:

buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
  pname = "gluonts";
  version = "0.16.2";
  pyproject = true;
@@ -38,10 +39,13 @@ buildPythonPackage rec {
  src = fetchFromGitHub {
    owner = "awslabs";
    repo = "gluonts";
    tag = "v${version}";
    tag = "v${finalAttrs.version}";
    hash = "sha256-h0+RYgGMz0gPchiKGIu0/NGcWBky5AWNTJKzoupn/iQ=";
  };

  # pydantic.v1.errors.ConfigError: unable to infer type for attribute "target"
  disabled = pythonAtLeast "3.14";

  patches = [
    # Fixes _pickle.UnpicklingError: Weights only load failed.
    # https://github.com/awslabs/gluonts/pull/3269
@@ -100,7 +104,7 @@ buildPythonPackage rec {
    writableTmpDirAsHomeHook
    which
  ]
  ++ optional-dependencies.torch;
  ++ finalAttrs.passthru.optional-dependencies.torch;

  disabledTestPaths = [
    # requires `cpflows`, not in Nixpkgs
@@ -119,8 +123,8 @@ buildPythonPackage rec {
  meta = {
    description = "Probabilistic time series modeling in Python";
    homepage = "https://ts.gluon.ai";
    changelog = "https://github.com/awslabs/gluonts/releases/tag/${src.tag}";
    changelog = "https://github.com/awslabs/gluonts/releases/tag/${finalAttrs.src.tag}";
    license = lib.licenses.asl20;
    maintainers = with lib.maintainers; [ bcdarwin ];
  };
}
})