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

python314Packages.uqbar: disable failing tests on python 3.14 (#483815)

parents 96bc8fec 92490a34
Loading
Loading
Loading
Loading
+16 −9
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchPypi,
  fetchFromGitHub,
  pytestCheckHook,
  pytest-asyncio,
  pythonAtLeast,
@@ -12,14 +12,16 @@
  unidecode,
}:

buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
  pname = "uqbar";
  version = "0.9.6";
  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-BaycnI00SgZzpvHPueXAAzV/yWDJEeaViWRSZkJofaY=";
  src = fetchFromGitHub {
    owner = "supriya-project";
    repo = "uqbar";
    tag = "v${finalAttrs.version}";
    hash = "sha256-1rK40lwZ3YmQZXhia2+iYRZxDCYvijXgBMIL5p7KmR0=";
  };

  postPatch = ''
@@ -61,17 +63,22 @@ buildPythonPackage rec {
    "test_sphinx_style"
  ]
  ++ lib.optional (pythonAtLeast "3.12") [
    # https://github.com/josiah-wolf-oberholtzer/uqbar/issues/93
    # https://github.com/supriya-project/uqbar/issues/93
    "objects.get_vars"
  ]
  ++ lib.optionals (pythonAtLeast "3.14") [
    # https://github.com/supriya-project/uqbar/issues/106
    "test_04"
    "SummarizingClassDocumenter"
  ];

  pythonImportsCheck = [ "uqbar" ];

  meta = {
    description = "Tools for creating Sphinx and Graphviz documentation";
    homepage = "https://github.com/josiah-wolf-oberholtzer/uqbar";
    changelog = "https://github.com/josiah-wolf-oberholtzer/uqbar/releases/tag/v${version}";
    homepage = "https://github.com/supriya-project/uqbar";
    changelog = "https://github.com/supriya-project/uqbar/releases/tag/${finalAttrs.src.tag}";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ davisrichard437 ];
  };
}
})