1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 setuptools,
6 pytestCheckHook,
7 pythonAtLeast,
8 pythonOlder,
9}:
10
11buildPythonPackage rec {
12 pname = "dominate";
13 version = "2.9.1";
14 pyproject = true;
15
16 disabled = pythonOlder "3.9";
17
18 src = fetchPypi {
19 inherit pname version;
20 hash = "sha256-VYKEaH2biq4ZBOPWBRrRMt1KjAz1UbN+pOfkKjHRncQ=";
21 };
22
23 build-system = [ setuptools ];
24
25 nativeCheckInputs = [ pytestCheckHook ];
26
27 pythonImportsCheck = [ "dominate" ];
28
29 disabledTestPaths = lib.optionals (pythonAtLeast "3.13") [
30 # Tests are failing, https://github.com/Knio/dominate/issues/213
31 "tests/test_svg.py"
32 ];
33
34 meta = with lib; {
35 description = "Library for creating and manipulating HTML documents using an elegant DOM API";
36 homepage = "https://github.com/Knio/dominate/";
37 changelog = "https://github.com/Knio/dominate/releases/tag/${version}";
38 license = licenses.lgpl3Plus;
39 maintainers = [ ];
40 };
41}