Commit 6a7304f2 authored by Martin Weinelt's avatar Martin Weinelt
Browse files

python312Packages.pytautulli: disable failing test

parent 5bed8e89
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -27,11 +27,11 @@ buildPythonPackage rec {
    # Upstream is releasing with the help of a CI to PyPI, GitHub releases
    # are not in their focus
    substituteInPlace setup.py \
      --replace 'version="main",' 'version="${version}",'
      --replace-fail 'version="main",' 'version="${version}",'

    # yarl 1.9.4 requires ports to be ints
    substituteInPlace pytautulli/models/host_configuration.py \
      --replace "str(self.port)" "int(self.port)"
      --replace-fail "str(self.port)" "int(self.port)"
  '';

  propagatedBuildInputs = [ aiohttp ];
@@ -43,7 +43,10 @@ buildPythonPackage rec {
    pytest-asyncio
  ];

  pytestFlagsArray = [ "--asyncio-mode=auto" ];
  disabledTests = [
    # api url mismatch (port missing)
    "test_api_url"
  ];

  pythonImportsCheck = [ "pytautulli" ];