1{ stdenv, buildPythonPackage, fetchFromGitHub
2, pyjwt, pysocks, pytz, requests, six, nose, mock }:
3
4buildPythonPackage rec {
5 pname = "twilio";
6 version = "6.43.0";
7 # tests not included in PyPi, so fetch from github instead
8 src = fetchFromGitHub {
9 owner = "twilio";
10 repo = "twilio-python";
11 rev = version;
12 sha256 = "0p2chrzakqx5694g305j0klh9lxlclm5qp0qjm6wqicivyybggzg";
13 };
14
15 buildInputs = [ nose mock ];
16
17 propagatedBuildInputs = [ pyjwt pysocks pytz six requests ];
18
19 meta = with stdenv.lib; {
20 description = "Twilio API client and TwiML generator";
21 homepage = "https://github.com/twilio/twilio-python/";
22 license = licenses.mit;
23 maintainers = with maintainers; [ flokli ];
24 };
25}