Unverified Commit c270cdce authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

python313Packages.dominate: disable failing tests on Python 3.13 (#371716)

parents 15ea3260 b7f6784d
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -4,6 +4,7 @@
  fetchPypi,
  setuptools,
  pytestCheckHook,
  pythonAtLeast,
  pythonOlder,
}:

@@ -12,19 +13,24 @@ buildPythonPackage rec {
  version = "2.9.1";
  pyproject = true;

  disabled = pythonOlder "3.7";
  disabled = pythonOlder "3.9";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-VYKEaH2biq4ZBOPWBRrRMt1KjAz1UbN+pOfkKjHRncQ=";
  };

  nativeBuildInputs = [ setuptools ];
  build-system = [ setuptools ];

  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "dominate" ];

  disabledTestPaths = lib.optionals (pythonAtLeast "3.13") [
    # Tests are failing, https://github.com/Knio/dominate/issues/213
    "tests/test_svg.py"
  ];

  meta = with lib; {
    description = "Library for creating and manipulating HTML documents using an elegant DOM API";
    homepage = "https://github.com/Knio/dominate/";