2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, buildPythonPackage
|
2021-05-20 23:08:51 +00:00
|
|
|
, authlib
|
2020-04-24 23:36:52 +00:00
|
|
|
, requests
|
|
|
|
, nose
|
2022-04-15 01:41:22 +00:00
|
|
|
, pythonOlder
|
2020-04-24 23:36:52 +00:00
|
|
|
, pytz
|
|
|
|
, responses
|
2022-04-15 01:41:22 +00:00
|
|
|
, zeep
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "simple-salesforce";
|
2022-09-14 18:05:37 +00:00
|
|
|
version = "1.12.2";
|
2022-04-15 01:41:22 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
2022-07-18 16:21:45 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2022-09-14 18:05:37 +00:00
|
|
|
sha256 = "sha256-E1tYKcV+7Raw8R7EOwyzCKh5keGxt232lxEQkoYU0Fw=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2021-05-20 23:08:51 +00:00
|
|
|
authlib
|
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
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
nose
|
|
|
|
pytz
|
|
|
|
responses
|
2021-05-20 23:08:51 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
checkPhase = ''
|
|
|
|
runHook preCheck
|
|
|
|
nosetests -v
|
|
|
|
runHook postCheck
|
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";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ costrouc ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|