{ lib , buildPythonPackage , fetchFromGitHub , flask , pytestCheckHook , python-http-client , pyyaml , starkbank-ecdsa , werkzeug }: buildPythonPackage rec { pname = "sendgrid"; version = "6.9.1"; format = "setuptools"; src = fetchFromGitHub { owner = pname; repo = "sendgrid-python"; rev = version; sha256 = "sha256-u7qakmJ9pKV1zonILEvMHxzMF6EaY+ZJUfh5s3TTH5w="; }; propagatedBuildInputs = [ python-http-client starkbank-ecdsa ]; checkInputs = [ flask pytestCheckHook pyyaml werkzeug ]; # Exclude tests that require network access pytestFlagsArray = [ "--ignore test/test_sendgrid.py" "--ignore live_test.py" ]; pythonImportsCheck = [ "sendgrid" ]; meta = with lib; { description = "Python client for SendGrid"; homepage = "https://github.com/sendgrid/sendgrid-python"; license = with licenses; [ mit ]; maintainers = with maintainers; [ fab ]; }; }