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