Unverified Commit d663d692 authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

python310Packages.tableauserverclient: modernize

parent 2a1ba960
Loading
Loading
Loading
Loading
+15 −6
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, python
, fetchPypi
, defusedxml
, requests
, packaging
, requests-mock
, pytestCheckHook
, pythonOlder
}:

buildPythonPackage rec {
  pname = "tableauserverclient";
  version = "0.28";
  format = "setuptools";

  disabled = pythonOlder "3.7";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-jSblDVkuuBBZ7GmPKUYji8wtRoPS7g8r6Ye9EpnjvKA=";
  };

  propagatedBuildInputs = [ defusedxml requests packaging ];

  checkInputs = [ requests-mock ];
  propagatedBuildInputs = [
    defusedxml
    requests
    packaging
  ];

  nativeCheckInputs = [ pytestCheckHook ];
  nativeCheckInputs = [
    requests-mock
    pytestCheckHook
  ];

  doCheck = false; # it attempts to create some file artifacts and fails
  # Tests attempt to create some file artifacts and fails
  doCheck = false;

  meta = with lib; {
    description = "Module for working with the Tableau Server REST API";