btrbk: add mainProgram (#356350)
[NixPkgs.git] / pkgs / development / python-modules / tableauserverclient / default.nix
blobf4c0658260f8cc9e02b86277443b3217568f39e7
2   lib,
3   buildPythonPackage,
4   defusedxml,
5   fetchPypi,
6   packaging,
7   pytestCheckHook,
8   pythonOlder,
9   requests,
10   requests-mock,
11   setuptools,
12   typing-extensions,
13   versioneer,
16 buildPythonPackage rec {
17   pname = "tableauserverclient";
18   version = "0.34";
19   pyproject = true;
21   disabled = pythonOlder "3.9";
23   src = fetchPypi {
24     inherit pname version;
25     hash = "sha256-0I0HLPCrA5LoGOnspIDeAp5x7jzR4S9dWitpGw0AzbA=";
26   };
28   postPatch = ''
29     # Remove vendorized versioneer
30     rm versioneer.py
31   '';
33   pythonRelaxDeps = [
34     "defusedxml"
35     "urllib3"
36   ];
38   build-system = [
39     setuptools
40     versioneer
41   ];
43   dependencies = [
44     defusedxml
45     requests
46     packaging
47     typing-extensions
48   ];
50   nativeCheckInputs = [
51     requests-mock
52     pytestCheckHook
53   ];
55   # Tests attempt to create some file artifacts and fails
56   doCheck = false;
58   pythonImportsCheck = [ "tableauserverclient" ];
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 = [ ];
66   };