2017-10-19 08:49:24 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchFromGitHub
|
|
|
|
, pyjwt, pysocks, pytz, requests, six, nose, mock }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "twilio";
|
2019-02-15 17:14:04 +00:00
|
|
|
version = "6.24.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;
|
2019-02-15 17:14:04 +00:00
|
|
|
sha256 = "16lxns59fms75swfjz46484464q4b1fw3ybf8f2k56aas9gyzb2j";
|
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";
|
|
|
|
homepage = https://github.com/twilio/twilio-python/;
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ flokli ];
|
|
|
|
};
|
|
|
|
}
|