Unverified Commit ae0862a3 authored by Aleksana's avatar Aleksana Committed by GitHub
Browse files

ablog: disable failed test (#430547)

parents 30b0c9ae cd8d590a
Loading
Loading
Loading
Loading
+14 −9
Original line number Diff line number Diff line
@@ -5,10 +5,13 @@
  gitUpdater,
}:

python3Packages.buildPythonApplication rec {
  pname = "ablog";
let
  version = "0.11.12";
  format = "pyproject";
in
python3Packages.buildPythonApplication {
  pname = "ablog";
  inherit version;
  pyproject = true;

  src = fetchFromGitHub {
    owner = "sunpy";
@@ -20,10 +23,9 @@ python3Packages.buildPythonApplication rec {
  build-system = with python3Packages; [
    setuptools
    setuptools-scm
    wheel
  ];

  nativeBuildInputs = with python3Packages; [ wheel ];

  dependencies = with python3Packages; [
    docutils
    feedgen
@@ -40,14 +42,17 @@ python3Packages.buildPythonApplication rec {
  ];

  pytestFlags = [
    "-Wignore::sphinx.deprecation.RemovedInSphinx90Warning"
    "--rootdir=src/ablog"
    "-Wignore::sphinx.deprecation.RemovedInSphinx90Warning" # Ignore ImportError
  ];

  # assert "post 1" not in html
  # AssertionError
  disabledTests = [ "test_not_safe_for_parallel_read" ];
  disabledTests = [
    # upstream investigation is still ongoing
    # https://github.com/sunpy/ablog/issues/302
    "test_not_safe_for_parallel_read"
    # need sphinx old version
    "test_feed"
  ];

  passthru.updateScript = gitUpdater { rev-prefix = "v"; };