From 2c898aed96e3a3573ab5d210fe8eb1f818c86508 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 25 May 2023 11:57:54 +0200 Subject: [PATCH] python310Packages.twilio: 7.17.0 -> 8.2.1 Changelog: https://github.com/twilio/twilio-python/blob/8.2.1/CHANGES.md --- .../python-modules/twilio/default.nix | 20 ++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/twilio/default.nix b/pkgs/development/python-modules/twilio/default.nix index 7b0e1f01f84..02cb7501cbe 100644 --- a/pkgs/development/python-modules/twilio/default.nix +++ b/pkgs/development/python-modules/twilio/default.nix @@ -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" ];