python310Packages.twilio: 7.17.0 -> 8.2.1

Changelog: https://github.com/twilio/twilio-python/blob/8.2.1/CHANGES.md
This commit is contained in:
Fabian Affolter 2023-05-25 11:57:54 +02:00
parent e2ec447c57
commit 2c898aed96

View File

@ -1,10 +1,14 @@
{ lib
, aiohttp
, aiohttp-retry
, aiounittest
, buildPythonPackage
, cryptography
, django
, fetchFromGitHub
, mock
, multidict
, pyngrok
, pyjwt
, pytestCheckHook
, pythonOlder
@ -14,25 +18,29 @@
buildPythonPackage rec {
pname = "twilio";
version = "7.17.0";
version = "8.2.1";
format = "setuptools";
disabled = pythonOlder "3.6";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "twilio";
repo = "twilio-python";
rev = "refs/tags/${version}";
hash = "sha256-14agJq7+fuQXqFDS8qfCj45XW/v3CekKmC5TA/5+eTk=";
hash = "sha256-joL+6+LfrF2bWkw3hViA97RYqcMVWw+MlHub+OaXlgI=";
};
propagatedBuildInputs = [
aiohttp
aiohttp-retry
pyjwt
pyngrok
pytz
requests
];
nativeCheckInputs = [
aiounittest
cryptography
django
mock
@ -46,6 +54,12 @@ buildPythonPackage rec {
"test_set_user_agent_extensions"
];
disabledTestPaths = [
# Tests require API token
"tests/cluster/test_webhook.py"
"tests/cluster/test_cluster.py"
];
pythonImportsCheck = [
"twilio"
];