83405b6dd2
GitOrigin-RevId: ac718d02867a84b42522a0ece52d841188208f2c
60 lines
1.1 KiB
Nix
60 lines
1.1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, cryptography
|
|
, django
|
|
, fetchFromGitHub
|
|
, mock
|
|
, multidict
|
|
, pyjwt
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, pytz
|
|
, requests
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "twilio";
|
|
version = "7.16.5";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "twilio";
|
|
repo = "twilio-python";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-Z/A+NcB/LpzF3JtdDA7+h0scjGWOiYx5fwAZTuyfdug=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
pyjwt
|
|
pytz
|
|
requests
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
cryptography
|
|
django
|
|
mock
|
|
multidict
|
|
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/";
|
|
changelog = "https://github.com/twilio/twilio-python/blob/${version}/CHANGES.md";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|