Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 23.05 60 lines 1.1 kB view raw
1{ lib 2, buildPythonPackage 3, cryptography 4, django 5, fetchFromGitHub 6, mock 7, multidict 8, pyjwt 9, pytestCheckHook 10, pythonOlder 11, pytz 12, requests 13}: 14 15buildPythonPackage rec { 16 pname = "twilio"; 17 version = "7.17.0"; 18 format = "setuptools"; 19 20 disabled = pythonOlder "3.6"; 21 22 src = fetchFromGitHub { 23 owner = "twilio"; 24 repo = "twilio-python"; 25 rev = "refs/tags/${version}"; 26 hash = "sha256-14agJq7+fuQXqFDS8qfCj45XW/v3CekKmC5TA/5+eTk="; 27 }; 28 29 propagatedBuildInputs = [ 30 pyjwt 31 pytz 32 requests 33 ]; 34 35 nativeCheckInputs = [ 36 cryptography 37 django 38 mock 39 multidict 40 pytestCheckHook 41 ]; 42 43 disabledTests = [ 44 # Tests require network access 45 "test_set_default_user_agent" 46 "test_set_user_agent_extensions" 47 ]; 48 49 pythonImportsCheck = [ 50 "twilio" 51 ]; 52 53 meta = with lib; { 54 description = "Twilio API client and TwiML generator"; 55 homepage = "https://github.com/twilio/twilio-python/"; 56 changelog = "https://github.com/twilio/twilio-python/blob/${version}/CHANGES.md"; 57 license = licenses.mit; 58 maintainers = with maintainers; [ fab ]; 59 }; 60}