1{ lib
2, buildPythonPackage
3, fetchPypi
4, defusedxml
5, requests
6, packaging
7, requests-mock
8, pytestCheckHook
9, pythonOlder
10}:
11
12buildPythonPackage rec {
13 pname = "tableauserverclient";
14 version = "0.28";
15 format = "setuptools";
16
17 disabled = pythonOlder "3.7";
18
19 src = fetchPypi {
20 inherit pname version;
21 hash = "sha256-jSblDVkuuBBZ7GmPKUYji8wtRoPS7g8r6Ye9EpnjvKA=";
22 };
23
24 propagatedBuildInputs = [
25 defusedxml
26 requests
27 packaging
28 ];
29
30 nativeCheckInputs = [
31 requests-mock
32 pytestCheckHook
33 ];
34
35 # Tests attempt to create some file artifacts and fails
36 doCheck = false;
37
38 pythonImportsCheck = [
39 "tableauserverclient"
40 ];
41
42 meta = with lib; {
43 description = "Module for working with the Tableau Server REST API";
44 homepage = "https://github.com/tableau/server-client-python";
45 changelog = "https://github.com/tableau/server-client-python/releases/tag/v${version}";
46 license = licenses.mit;
47 maintainers = with maintainers; [ ];
48 };
49}