12 buildPythonPackage rec {
13 pname = "tableaudocumentapi";
17 build-system = [ setuptools ];
19 disabled = pythonOlder "3.7";
22 inherit pname version;
23 hash = "sha256-g6V1UBf+P21FcZkR3PHoUmdmrQwEvjdd1VKhvNmvOys=";
26 # distutils has been removed since python 3.12
27 # see https://github.com/tableau/document-api-python/pull/255
29 name = "no-distutils.patch";
30 url = "https://github.com/tableau/document-api-python/pull/255/commits/59280bbe073060d1249e6404e11303ed6faa84f6.patch";
31 hash = "sha256-mjIF9iP1BQXvqkS0jYNTm8otkhSKLj2b2iHSMZ2K0iI=";
35 dependencies = [ lxml ];
37 nativeCheckInputs = [ pytestCheckHook ];
39 pythonImportsCheck = [ "tableaudocumentapi" ];
41 # ModuleNotFoundError: No module named 'test.assets'
45 description = "Python module for working with Tableau files";
46 homepage = "https://github.com/tableau/document-api-python";
47 changelog = "https://github.com/tableau/document-api-python/releases/tag/v${version}";
48 license = licenses.mit;