3a4df29a92
GitOrigin-RevId: 3d7435c638baffaa826b85459df0fff47f12317d
53 lines
935 B
Nix
53 lines
935 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, mock
|
|
, pyjwt
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, pytz
|
|
, requests
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "twilio";
|
|
version = "7.9.3";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "twilio";
|
|
repo = "twilio-python";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-tTtfrIapIaC3oidqWRntkZ1T1eKZ9/ggKbZk2cMiPSQ=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
pyjwt
|
|
pytz
|
|
requests
|
|
];
|
|
|
|
checkInputs = [
|
|
mock
|
|
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 ];
|
|
};
|
|
}
|