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