1{ lib 2, fetchFromGitHub 3, buildPythonPackage 4, authlib 5, requests 6, nose 7, pythonOlder 8, pytz 9, responses 10, zeep 11}: 12 13buildPythonPackage rec { 14 pname = "simple-salesforce"; 15 version = "1.12.2"; 16 format = "setuptools"; 17 18 disabled = pythonOlder "3.7"; 19 20 src = fetchFromGitHub { 21 owner = pname; 22 repo = pname; 23 rev = "refs/tags/v${version}"; 24 sha256 = "sha256-E1tYKcV+7Raw8R7EOwyzCKh5keGxt232lxEQkoYU0Fw="; 25 }; 26 27 propagatedBuildInputs = [ 28 authlib 29 requests 30 zeep 31 ]; 32 33 checkInputs = [ 34 nose 35 pytz 36 responses 37 ]; 38 39 checkPhase = '' 40 runHook preCheck 41 nosetests -v 42 runHook postCheck 43 ''; 44 45 meta = with lib; { 46 description = "A very simple Salesforce.com REST API client for Python"; 47 homepage = "https://github.com/simple-salesforce/simple-salesforce"; 48 license = licenses.asl20; 49 maintainers = with maintainers; [ costrouc ]; 50 }; 51 52}