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