Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / tableauserverclient / default.nix
blob3ddf8c9a2d15c674a532a9374d49128b63e32838
1 { lib
2 , buildPythonPackage
3 , defusedxml
4 , fetchPypi
5 , packaging
6 , pytestCheckHook
7 , pythonOlder
8 , pythonRelaxDepsHook
9 , requests
10 , requests-mock
11 , setuptools
12 , versioneer
15 buildPythonPackage rec {
16   pname = "tableauserverclient";
17   version = "0.30";
18   pyproject = true;
20   disabled = pythonOlder "3.7";
22   src = fetchPypi {
23     inherit pname version;
24     hash = "sha256-MIE6V84xLEbgmTwvP6jQC0H//gBnMTO1sowL1HIMbpQ=";
25   };
27   postPatch = ''
28     # Remove vendorized versioneer
29     rm versioneer.py
30   '';
32   pythonRelaxDeps = [
33     "urllib3"
34   ];
36   nativeBuildInputs = [
37     setuptools
38     pythonRelaxDepsHook
39     versioneer
40   ];
42   propagatedBuildInputs = [
43     defusedxml
44     requests
45     packaging
46   ];
48   nativeCheckInputs = [
49     requests-mock
50     pytestCheckHook
51   ];
53   # Tests attempt to create some file artifacts and fails
54   doCheck = false;
56   pythonImportsCheck = [
57     "tableauserverclient"
58   ];
60   meta = with lib; {
61     description = "Module for working with the Tableau Server REST API";
62     homepage = "https://github.com/tableau/server-client-python";
63     changelog = "https://github.com/tableau/server-client-python/releases/tag/v${version}";
64     license = licenses.mit;
65     maintainers = with maintainers; [ ];
66   };