2017-10-19 07:49:24 +00:00
|
|
|
{ stdenv, buildPythonPackage, fetchFromGitHub
|
|
|
|
, pyjwt, pysocks, pytz, requests, six, nose, mock }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "twilio";
|
2019-06-18 02:28:30 +00:00
|
|
|
version = "6.28.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;
|
2019-06-18 02:28:30 +00:00
|
|
|
sha256 = "161s4nb4hhqgb8kc5wiq3s4jkv9a3fg9vycf5ga804vzfr04zlki";
|
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";
|
|
|
|
homepage = https://github.com/twilio/twilio-python/;
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ flokli ];
|
|
|
|
};
|
|
|
|
}
|