My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/twilio/default.nix

59 lines
1014 B

{ lib
, buildPythonPackage
, cryptography
, django
, fetchFromGitHub
, mock
, multidict
, pyjwt
, pytestCheckHook
, pythonOlder
, pytz
, requests
}:
buildPythonPackage rec {
pname = "twilio";
version = "7.15.0";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "twilio";
repo = "twilio-python";
rev = "refs/tags/${version}";
hash = "sha256-raRrEK1Ub5yV4T2onZj+Y+pmtm09z3KxGmtqK6TnlSk=";
};
propagatedBuildInputs = [
pyjwt
pytz
requests
];
checkInputs = [
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/";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}