01ed8ef136
GitOrigin-RevId: 20fc948445a6c22d4e8d5178e9a6bc6e1f5417c8
59 lines
1,014 B
Nix
59 lines
1,014 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, cryptography
|
|
, django
|
|
, fetchFromGitHub
|
|
, mock
|
|
, multidict
|
|
, pyjwt
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, pytz
|
|
, requests
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "twilio";
|
|
version = "7.15.3";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "twilio";
|
|
repo = "twilio-python";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-c1UNqp8eYK9tkogpcDtTOTHa5ME+yOkop2UccXwOAqM=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
pyjwt
|
|
pytz
|
|
requests
|
|
];
|
|
|
|
checkInputs = [
|
|
cryptography
|
|
django
|
|
mock
|
|
multidict
|
|
pytestCheckHook
|
|
];
|
|
|
|
disabledTests = [
|
|
# Tests require network access
|
|
"test_set_default_user_agent"
|
|
"test_set_user_agent_extensions"
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"twilio"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Twilio API client and TwiML generator";
|
|
homepage = "https://github.com/twilio/twilio-python/";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|