2019-01-31 04:18:01 -05:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2022-08-18 13:37:52 +02:00
|
|
|
, lxml
|
|
|
|
, pytestCheckHook
|
2022-12-23 23:04:16 +01:00
|
|
|
, pythonOlder
|
2019-01-31 04:18:01 -05:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "tableaudocumentapi";
|
2022-12-23 21:45:55 +00:00
|
|
|
version = "0.11";
|
2022-12-23 23:04:16 +01:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2019-01-31 04:18:01 -05:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-12-23 23:04:16 +01:00
|
|
|
hash = "sha256-g6V1UBf+P21FcZkR3PHoUmdmrQwEvjdd1VKhvNmvOys=";
|
2019-01-31 04:18:01 -05:00
|
|
|
};
|
|
|
|
|
2022-12-23 23:04:16 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
lxml
|
|
|
|
];
|
2022-08-18 13:37:52 +02:00
|
|
|
|
2022-12-23 23:04:16 +01:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2022-08-18 13:37:52 +02:00
|
|
|
|
2022-12-23 23:04:16 +01:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"tableaudocumentapi"
|
|
|
|
];
|
2022-08-18 13:37:52 +02:00
|
|
|
|
|
|
|
# ModuleNotFoundError: No module named 'test.assets'
|
2019-01-31 04:18:01 -05:00
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
2022-12-23 23:04:16 +01:00
|
|
|
description = "Python module for working with Tableau files";
|
2020-03-31 21:11:51 -04:00
|
|
|
homepage = "https://github.com/tableau/document-api-python";
|
2022-12-23 23:04:16 +01:00
|
|
|
changelog = "https://github.com/tableau/document-api-python/releases/tag/v${version}";
|
2019-01-31 04:18:01 -05:00
|
|
|
license = licenses.mit;
|
2022-08-18 13:37:52 +02:00
|
|
|
maintainers = with maintainers; [ costrouc ];
|
2019-01-31 04:18:01 -05:00
|
|
|
};
|
|
|
|
}
|