Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, fetchFromGitHub 3, buildPythonPackage 4, authlib 5, requests 6, nose 7, pyjwt 8, pythonOlder 9, pytz 10, responses 11, zeep 12}: 13 14buildPythonPackage rec { 15 pname = "simple-salesforce"; 16 version = "1.12.4"; 17 format = "setuptools"; 18 19 disabled = pythonOlder "3.7"; 20 21 src = fetchFromGitHub { 22 owner = pname; 23 repo = pname; 24 rev = "refs/tags/v${version}"; 25 hash = "sha256-nYL2kSDS6DSrBzAKbg7Wj6boSZ52+T/yX+NYnYQ9rQo="; 26 }; 27 28 propagatedBuildInputs = [ 29 authlib 30 pyjwt 31 requests 32 zeep 33 ]; 34 35 nativeCheckInputs = [ 36 nose 37 pytz 38 responses 39 ]; 40 41 checkPhase = '' 42 runHook preCheck 43 nosetests -v 44 runHook postCheck 45 ''; 46 47 pythonImportsCheck = [ 48 "simple_salesforce" 49 ]; 50 51 meta = with lib; { 52 description = "A very simple Salesforce.com REST API client for Python"; 53 homepage = "https://github.com/simple-salesforce/simple-salesforce"; 54 changelog = "https://github.com/simple-salesforce/simple-salesforce/blob/v${version}/CHANGES"; 55 license = licenses.asl20; 56 maintainers = with maintainers; [ costrouc ]; 57 }; 58 59}