2023-10-09 19:29:22 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, defusedxml
|
|
|
|
, requests
|
|
|
|
, packaging
|
|
|
|
, requests-mock
|
|
|
|
, pytestCheckHook
|
2023-11-16 04:20:00 +00:00
|
|
|
, pythonOlder
|
2023-10-09 19:29:22 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "tableauserverclient";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "0.28";
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2023-10-09 19:29:22 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-11-16 04:20:00 +00:00
|
|
|
hash = "sha256-jSblDVkuuBBZ7GmPKUYji8wtRoPS7g8r6Ye9EpnjvKA=";
|
2023-10-09 19:29:22 +00:00
|
|
|
};
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
defusedxml
|
|
|
|
requests
|
|
|
|
packaging
|
|
|
|
];
|
2023-10-09 19:29:22 +00:00
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
requests-mock
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2023-10-09 19:29:22 +00:00
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
# Tests attempt to create some file artifacts and fails
|
|
|
|
doCheck = false;
|
2023-10-09 19:29:22 +00:00
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"tableauserverclient"
|
|
|
|
];
|
2023-10-09 19:29:22 +00:00
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Module for working with the Tableau Server REST API";
|
|
|
|
homepage = "https://github.com/tableau/server-client-python";
|
|
|
|
changelog = "https://github.com/tableau/server-client-python/releases/tag/v${version}";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ ];
|
2023-10-09 19:29:22 +00:00
|
|
|
};
|
|
|
|
}
|