02cf88bb76
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
52 lines
894 B
Nix
52 lines
894 B
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, buildPythonPackage
|
|
, authlib
|
|
, requests
|
|
, nose
|
|
, pythonOlder
|
|
, pytz
|
|
, responses
|
|
, zeep
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "simple-salesforce";
|
|
version = "1.12.1";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = pname;
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
sha256 = "sha256-eDaqL4CsP5wOqfwrkeWJdg+rlcMnFT3l7A9xgVnhx0w=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
authlib
|
|
requests
|
|
zeep
|
|
];
|
|
|
|
checkInputs = [
|
|
nose
|
|
pytz
|
|
responses
|
|
];
|
|
|
|
checkPhase = ''
|
|
runHook preCheck
|
|
nosetests -v
|
|
runHook postCheck
|
|
'';
|
|
|
|
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 ];
|
|
};
|
|
|
|
}
|