Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 48 lines 813 B view raw
1{ lib 2, fetchFromGitHub 3, buildPythonPackage 4, authlib 5, requests 6, mock 7, isPy27 8, nose 9, pytz 10, responses 11}: 12 13buildPythonPackage rec { 14 pname = "simple-salesforce"; 15 version = "1.11.0"; 16 17 src = fetchFromGitHub { 18 owner = pname; 19 repo = pname; 20 rev = "v${version}"; 21 sha256 = "16c34xnqa1xkdfjbxx0q584zb6aqci2z6j4211hmzjqs74ddvysm"; 22 }; 23 24 propagatedBuildInputs = [ 25 authlib 26 requests 27 ]; 28 29 checkInputs = [ 30 nose 31 pytz 32 responses 33 ]; 34 35 checkPhase = '' 36 runHook preCheck 37 nosetests -v 38 runHook postCheck 39 ''; 40 41 meta = with lib; { 42 description = "A very simple Salesforce.com REST API client for Python"; 43 homepage = "https://github.com/simple-salesforce/simple-salesforce"; 44 license = licenses.asl20; 45 maintainers = with maintainers; [ costrouc ]; 46 }; 47 48}