3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/simple-salesforce/default.nix
2021-09-05 14:58:31 +02:00

49 lines
813 B
Nix

{ lib
, fetchFromGitHub
, buildPythonPackage
, authlib
, requests
, mock
, isPy27
, nose
, pytz
, responses
}:
buildPythonPackage rec {
pname = "simple-salesforce";
version = "1.11.3";
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "v${version}";
sha256 = "16bd40n0xy0vmsgi2499vc6mx57ksyjrm6v88bwxp49p9qrm4a23";
};
propagatedBuildInputs = [
authlib
requests
];
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 ];
};
}