1{ lib
2, buildPythonPackage
3, cryptography
4, django
5, fetchFromGitHub
6, mock
7, multidict
8, pyjwt
9, pytestCheckHook
10, pythonOlder
11, pytz
12, requests
13}:
14
15buildPythonPackage rec {
16 pname = "twilio";
17 version = "7.15.3";
18 format = "setuptools";
19
20 disabled = pythonOlder "3.6";
21
22 src = fetchFromGitHub {
23 owner = "twilio";
24 repo = "twilio-python";
25 rev = "refs/tags/${version}";
26 hash = "sha256-c1UNqp8eYK9tkogpcDtTOTHa5ME+yOkop2UccXwOAqM=";
27 };
28
29 propagatedBuildInputs = [
30 pyjwt
31 pytz
32 requests
33 ];
34
35 checkInputs = [
36 cryptography
37 django
38 mock
39 multidict
40 pytestCheckHook
41 ];
42
43 disabledTests = [
44 # Tests require network access
45 "test_set_default_user_agent"
46 "test_set_user_agent_extensions"
47 ];
48
49 pythonImportsCheck = [
50 "twilio"
51 ];
52
53 meta = with lib; {
54 description = "Twilio API client and TwiML generator";
55 homepage = "https://github.com/twilio/twilio-python/";
56 license = licenses.mit;
57 maintainers = with maintainers; [ fab ];
58 };
59}