22 buildPythonPackage rec {
27 disabled = pythonOlder "3.7";
29 src = fetchFromGitHub {
31 repo = "twilio-python";
33 hash = "sha256-sZhKFnCmARocnOqM1NE6eGU/6UtfJSQTK+bv5HHHU1U=";
36 build-system = [ setuptools ];
57 # Tests require network access
58 "test_set_default_user_agent"
59 "test_set_user_agent_extensions"
64 # Tests require API token
65 "tests/cluster/test_webhook.py"
66 "tests/cluster/test_cluster.py"
68 ++ lib.optionals (pythonAtLeast "3.11") [
69 # aiounittest is not supported on Python 3.12
70 "tests/unit/http/test_async_http_client.py"
73 pythonImportsCheck = [ "twilio" ];
76 description = "Twilio API client and TwiML generator";
77 homepage = "https://github.com/twilio/twilio-python/";
78 changelog = "https://github.com/twilio/twilio-python/blob/${version}/CHANGES.md";
79 license = licenses.mit;
80 maintainers = with maintainers; [ fab ];