Unverified Commit b728d52f authored by Peder Bergebakken Sundt's avatar Peder Bergebakken Sundt Committed by GitHub
Browse files

python3Packages.simple-salesforce: unbreak (#510056)

parents 5a32c40c ee1c008e
Loading
Loading
Loading
Loading
+12 −4
Original line number Diff line number Diff line
@@ -7,6 +7,7 @@
  pendulum,
  pyjwt,
  pytestCheckHook,
  pytest-cov-stub,
  pytz,
  requests,
  responses,
@@ -15,7 +16,7 @@
  zeep,
}:

buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
  pname = "simple-salesforce";
  version = "1.12.9";
  pyproject = true;
@@ -23,7 +24,7 @@ buildPythonPackage rec {
  src = fetchFromGitHub {
    owner = "simple-salesforce";
    repo = "simple-salesforce";
    tag = "v${version}";
    tag = "v${finalAttrs.version}";
    hash = "sha256-eMO/K6W9ROljYxR3gK9QjCHdlbAuN4DYjOyTO1WcalQ=";
  };

@@ -41,17 +42,24 @@ buildPythonPackage rec {

  nativeCheckInputs = [
    pytestCheckHook
    pytest-cov-stub
    pytz
    responses
  ];

  disabledTests = [
    "test_connected_app_login_failure"
    "test_token_login_failure"
    "test_token_login_failure_with_warning"
  ];

  pythonImportsCheck = [ "simple_salesforce" ];

  meta = {
    description = "Very simple Salesforce.com REST API client for Python";
    homepage = "https://github.com/simple-salesforce/simple-salesforce";
    changelog = "https://github.com/simple-salesforce/simple-salesforce/blob/${src.tag}/CHANGES";
    changelog = "https://github.com/simple-salesforce/simple-salesforce/blob/${finalAttrs.src.tag}/CHANGES";
    license = lib.licenses.asl20;
    maintainers = [ ];
  };
}
})