2021-02-13 14:23:35 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, mock
|
|
|
|
, nose
|
|
|
|
, pyjwt
|
|
|
|
, pysocks
|
|
|
|
, pytz
|
|
|
|
, requests
|
|
|
|
, six
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "twilio";
|
2021-02-13 14:23:35 +00:00
|
|
|
version = "6.51.1";
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
# tests not included in PyPi, so fetch from github instead
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "twilio";
|
|
|
|
repo = "twilio-python";
|
|
|
|
rev = version;
|
2021-02-13 14:23:35 +00:00
|
|
|
sha256 = "sha256-OHtmUFm/9GkpIzz0DdSdlHyBFRIgu8GxQ4S4VMJik9o=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ nose mock ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ pyjwt pysocks pytz six requests ];
|
|
|
|
|
2021-02-13 14:23:35 +00:00
|
|
|
pythonImportsCheck = [ "twilio" ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Twilio API client and TwiML generator";
|
|
|
|
homepage = "https://github.com/twilio/twilio-python/";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ flokli ];
|
|
|
|
};
|
|
|
|
}
|