1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 flask, 6 pytestCheckHook, 7 python-http-client, 8 pythonOlder, 9 pyyaml, 10 starkbank-ecdsa, 11 six, 12 werkzeug, 13}: 14 15buildPythonPackage rec { 16 pname = "sendgrid"; 17 version = "6.11.0"; 18 format = "setuptools"; 19 20 disabled = pythonOlder "3.6"; 21 22 src = fetchFromGitHub { 23 owner = pname; 24 repo = "sendgrid-python"; 25 rev = "refs/tags/${version}"; 26 hash = "sha256-wcQLdU80pcyEplzL8lnehtToqYiTrX1n5TjmK5zturE="; 27 }; 28 29 propagatedBuildInputs = [ 30 python-http-client 31 starkbank-ecdsa 32 six 33 ]; 34 35 nativeCheckInputs = [ 36 flask 37 pytestCheckHook 38 pyyaml 39 werkzeug 40 ]; 41 42 disabledTestPaths = [ 43 # Exclude tests that require network access 44 "test/integ/test_sendgrid.py" 45 "live_test.py" 46 ]; 47 48 pythonImportsCheck = [ "sendgrid" ]; 49 50 meta = with lib; { 51 description = "Python client for SendGrid"; 52 homepage = "https://github.com/sendgrid/sendgrid-python"; 53 changelog = "https://github.com/sendgrid/sendgrid-python/blob/${version}/CHANGELOG.md"; 54 license = with licenses; [ mit ]; 55 maintainers = with maintainers; [ fab ]; 56 }; 57}