pythonPackages.simple-salesforce: init at 0.74.3

This commit is contained in:
Chris Ostrouchov 2019-07-24 14:46:12 -04:00 committed by Frederik Rietdijk
parent 0dfb5c5108
commit 4c85595ada
2 changed files with 53 additions and 0 deletions

View file

@ -0,0 +1,51 @@
{ lib
, fetchFromGitHub
, buildPythonPackage
, requests
, pyopenssl
, cryptography
, idna
, mock
, isPy27
, nose
, pytz
, responses
}:
buildPythonPackage rec {
pname = "simple-salesforce";
version = "0.74.3";
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "v${version}";
sha256 = "1n960xgrnmv20l31nm0im7pb4nfa83bmx4x4clqrh2jkpzq3ric0";
};
propagatedBuildInputs = [
requests
pyopenssl
cryptography
idna
];
checkInputs = [
nose
pytz
responses
] ++ lib.optionals isPy27 [ mock ];
postPatch = ''
substituteInPlace setup.py \
--replace "mock==1.0.1" "mock"
'';
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 ];
};
}

View file

@ -1101,6 +1101,8 @@ in {
simpleeval = callPackage ../development/python-modules/simpleeval { };
simple-salesforce = callPackage ../development/python-modules/simple-salesforce { };
singledispatch = callPackage ../development/python-modules/singledispatch { };
sip = callPackage ../development/python-modules/sip { };