2017-10-19 07:49:24 +00:00
|
|
|
{ stdenv, buildPythonPackage, fetchFromGitHub
|
|
|
|
, pyjwt, pysocks, pytz, requests, six, nose, mock }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "twilio";
|
2020-07-06 17:15:37 +00:00
|
|
|
version = "6.43.0";
|
2017-10-19 07:49:24 +00:00
|
|
|
# tests not included in PyPi, so fetch from github instead
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "twilio";
|
|
|
|
repo = "twilio-python";
|
|
|
|
rev = version;
|
2020-07-06 17:15:37 +00:00
|
|
|
sha256 = "0p2chrzakqx5694g305j0klh9lxlclm5qp0qjm6wqicivyybggzg";
|
2017-10-19 07:49:24 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ nose mock ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ pyjwt pysocks pytz six requests ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Twilio API client and TwiML generator";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/twilio/twilio-python/";
|
2017-10-19 07:49:24 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ flokli ];
|
|
|
|
};
|
|
|
|
}
|