1{ lib
2, buildPythonPackage
3, cryptography
4, fetchFromGitHub
5, more-itertools
6, pendulum
7, pyjwt
8, pytestCheckHook
9, pythonOlder
10, pytz
11, requests
12, responses
13, setuptools
14, zeep
15}:
16
17buildPythonPackage rec {
18 pname = "simple-salesforce";
19 version = "1.12.5";
20 pyproject = true;
21
22 disabled = pythonOlder "3.7";
23
24 src = fetchFromGitHub {
25 owner = "simple-salesforce";
26 repo = "simple-salesforce";
27 rev = "refs/tags/v${version}";
28 hash = "sha256-mj7lbBGEybsEzWo4TYmPrN3mBXItdo/JomVIYmzIDAY=";
29 };
30
31 nativeBuildInputs = [
32 setuptools
33 ];
34
35 propagatedBuildInputs = [
36 cryptography
37 more-itertools
38 pendulum
39 pyjwt
40 requests
41 zeep
42 ];
43
44 nativeCheckInputs = [
45 pytestCheckHook
46 pytz
47 responses
48 ];
49
50 pythonImportsCheck = [
51 "simple_salesforce"
52 ];
53
54 meta = with lib; {
55 description = "A very simple Salesforce.com REST API client for Python";
56 homepage = "https://github.com/simple-salesforce/simple-salesforce";
57 changelog = "https://github.com/simple-salesforce/simple-salesforce/blob/v${version}/CHANGES";
58 license = licenses.asl20;
59 maintainers = with maintainers; [ ];
60 };
61
62}