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