1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, mock
5, nose
6, pyjwt
7, pythonOlder
8, pytz
9, requests
10}:
11
12buildPythonPackage rec {
13 pname = "twilio";
14 version = "7.2.0";
15
16 disabled = pythonOlder "3.6";
17
18 src = fetchFromGitHub {
19 owner = "twilio";
20 repo = "twilio-python";
21 rev = version;
22 sha256 = "sha256-lhRlLZ9RpOpNIPEgrO7+JO8CnqeC3gqgGqXjznsA9ls=";
23 };
24
25 propagatedBuildInputs = [
26 pyjwt
27 pytz
28 requests
29 ];
30
31 checkInputs = [
32 mock
33 nose
34 ];
35
36 pythonImportsCheck = [
37 "twilio"
38 ];
39
40 meta = with lib; {
41 description = "Twilio API client and TwiML generator";
42 homepage = "https://github.com/twilio/twilio-python/";
43 license = licenses.mit;
44 maintainers = with maintainers; [ ];
45 };
46}