2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2023-11-16 04:20:00 +00:00
|
|
|
, cryptography
|
|
|
|
, fetchFromGitHub
|
|
|
|
, more-itertools
|
|
|
|
, pendulum
|
2023-04-29 16:46:19 +00:00
|
|
|
, pyjwt
|
2023-11-16 04:20:00 +00:00
|
|
|
, pytestCheckHook
|
2022-04-15 01:41:22 +00:00
|
|
|
, pythonOlder
|
2020-04-24 23:36:52 +00:00
|
|
|
, pytz
|
2023-11-16 04:20:00 +00:00
|
|
|
, requests
|
2020-04-24 23:36:52 +00:00
|
|
|
, responses
|
2023-11-16 04:20:00 +00:00
|
|
|
, setuptools
|
2022-04-15 01:41:22 +00:00
|
|
|
, zeep
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "simple-salesforce";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "1.12.5";
|
|
|
|
pyproject = true;
|
2022-04-15 01:41:22 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2023-11-16 04:20:00 +00:00
|
|
|
owner = "simple-salesforce";
|
|
|
|
repo = "simple-salesforce";
|
2022-07-18 16:21:45 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-11-16 04:20:00 +00:00
|
|
|
hash = "sha256-mj7lbBGEybsEzWo4TYmPrN3mBXItdo/JomVIYmzIDAY=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [
|
2023-11-16 04:20:00 +00:00
|
|
|
cryptography
|
|
|
|
more-itertools
|
|
|
|
pendulum
|
2023-04-29 16:46:19 +00:00
|
|
|
pyjwt
|
2020-04-24 23:36:52 +00:00
|
|
|
requests
|
2022-04-15 01:41:22 +00:00
|
|
|
zeep
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2023-11-16 04:20:00 +00:00
|
|
|
pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
pytz
|
|
|
|
responses
|
2021-05-20 23:08:51 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"simple_salesforce"
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "A very simple Salesforce.com REST API client for Python";
|
|
|
|
homepage = "https://github.com/simple-salesforce/simple-salesforce";
|
2023-04-29 16:46:19 +00:00
|
|
|
changelog = "https://github.com/simple-salesforce/simple-salesforce/blob/v${version}/CHANGES";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.asl20;
|
2023-08-04 22:07:22 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|