depot/third_party/nixpkgs/pkgs/development/python-modules/twilio/default.nix
Default email 5e7c2d6cef Project import generated by Copybara.
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
2023-10-09 21:29:22 +02:00

74 lines
1.3 KiB
Nix

{ lib
, aiohttp
, aiohttp-retry
, aiounittest
, buildPythonPackage
, cryptography
, django
, fetchFromGitHub
, mock
, multidict
, pyngrok
, pyjwt
, pytestCheckHook
, pythonOlder
, pytz
, requests
}:
buildPythonPackage rec {
pname = "twilio";
version = "8.9.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "twilio";
repo = "twilio-python";
rev = "refs/tags/${version}";
hash = "sha256-F+0nYZIvZVH0QuEkuiV2lwA62r6T/amWFWg7rfBqddU=";
};
propagatedBuildInputs = [
aiohttp
aiohttp-retry
pyjwt
pyngrok
pytz
requests
];
nativeCheckInputs = [
aiounittest
cryptography
django
mock
multidict
pytestCheckHook
];
disabledTests = [
# Tests require network access
"test_set_default_user_agent"
"test_set_user_agent_extensions"
];
disabledTestPaths = [
# Tests require API token
"tests/cluster/test_webhook.py"
"tests/cluster/test_cluster.py"
];
pythonImportsCheck = [
"twilio"
];
meta = with lib; {
description = "Twilio API client and TwiML generator";
homepage = "https://github.com/twilio/twilio-python/";
changelog = "https://github.com/twilio/twilio-python/blob/${version}/CHANGES.md";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}