0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-13 13:40:28 +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,
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/";