Files
nixpkgs/pkgs/development/python-modules/simple-salesforce/default.nix
T
2022-03-14 00:29:01 +01:00

47 lines
796 B
Nix

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