depot/third_party/nixpkgs/pkgs/development/python-modules/simple-salesforce/default.nix
Default email bb584b27e9 Project import generated by Copybara.
GitOrigin-RevId: 5181d5945eda382ff6a9ca3e072ed6ea9b547fee
2022-04-15 03:41:22 +02:00

52 lines
884 B
Nix

{ lib
, fetchFromGitHub
, buildPythonPackage
, authlib
, requests
, nose
, pythonOlder
, pytz
, responses
, zeep
}:
buildPythonPackage rec {
pname = "simple-salesforce";
version = "1.11.6";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "v${version}";
sha256 = "sha256-/uaFEQnilcelHKjbmrnyLm5Mzj2V8P4oEH+cgJn+KvI=";
};
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 ];
};
}