0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-13 21:50:33 +03:00

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

This commit is contained in:
Fabian Affolter 2025-01-07 09:22:28 +01:00 committed by GitHub
commit c270cdcea8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4,6 +4,7 @@
fetchPypi, fetchPypi,
setuptools, setuptools,
pytestCheckHook, pytestCheckHook,
pythonAtLeast,
pythonOlder, pythonOlder,
}: }:
@ -12,19 +13,24 @@ buildPythonPackage rec {
version = "2.9.1"; version = "2.9.1";
pyproject = true; pyproject = true;
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.9";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
hash = "sha256-VYKEaH2biq4ZBOPWBRrRMt1KjAz1UbN+pOfkKjHRncQ="; hash = "sha256-VYKEaH2biq4ZBOPWBRrRMt1KjAz1UbN+pOfkKjHRncQ=";
}; };
nativeBuildInputs = [ setuptools ]; build-system = [ setuptools ];
nativeCheckInputs = [ pytestCheckHook ]; nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "dominate" ]; 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; { meta = with lib; {
description = "Library for creating and manipulating HTML documents using an elegant DOM API"; description = "Library for creating and manipulating HTML documents using an elegant DOM API";
homepage = "https://github.com/Knio/dominate/"; homepage = "https://github.com/Knio/dominate/";