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