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

python3Packages.anyconfig: disable broken tests on python 3.14 (#478244)

parents 99513b7d eec0fb17
Loading
Loading
Loading
Loading
+14 −6
Original line number Diff line number Diff line
{
  buildPythonPackage,
  fetchPypi,
  fetchFromGitHub,
  lib,
  pytestCheckHook,
  pythonAtLeast,
  setuptools,
}:

buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
  pname = "anyconfig";
  version = "0.14.0";
  format = "setuptools";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-LN9Ur12ujpF0Pe2CxU7Z2Krvo6lyL11F6bX3S2A+AU0=";
  src = fetchFromGitHub {
    owner = "ssato";
    repo = "python-anyconfig";
    tag = "RELEASE_${finalAttrs.version}";
    hash = "sha256-ngXj/KzErz81T09j6tlV9OYDX3DqW5I8xo/ulLNokpQ=";
  };

  postPatch = ''
@@ -27,6 +30,11 @@ buildPythonPackage rec {
  disabledTests = [
    # OSError: /build/anyconfig-0.12.0/tests/res/cli/no_template/10/e/10.* should exists but not
    "test_runs_for_datasets"
  ]
  ++ lib.optionals (pythonAtLeast "3.14") [
    # Python 3.14: output format has changed
    "test_dumps"
    "test_dump"
  ];

  disabledTestPaths = [
@@ -44,4 +52,4 @@ buildPythonPackage rec {
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ tboerger ];
  };
}
})