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