2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, flask
|
|
|
|
, pytestCheckHook
|
|
|
|
, python-http-client
|
2022-01-13 20:06:32 +00:00
|
|
|
, pythonOlder
|
2021-02-05 17:12:51 +00:00
|
|
|
, pyyaml
|
|
|
|
, starkbank-ecdsa
|
|
|
|
, werkzeug
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "sendgrid";
|
2022-03-30 09:31:56 +00:00
|
|
|
version = "6.9.7";
|
2021-12-06 16:07:01 +00:00
|
|
|
format = "setuptools";
|
2021-02-05 17:12:51 +00:00
|
|
|
|
2022-01-13 20:06:32 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = pname;
|
|
|
|
repo = "sendgrid-python";
|
|
|
|
rev = version;
|
2022-03-30 09:31:56 +00:00
|
|
|
sha256 = "sha256-Lx84jmgJz/J5MJtJyqDTVIbN6H63gD2rkJrdNeojd08=";
|
2021-02-05 17:12:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
python-http-client
|
|
|
|
starkbank-ecdsa
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
flask
|
|
|
|
pytestCheckHook
|
|
|
|
pyyaml
|
|
|
|
werkzeug
|
|
|
|
];
|
|
|
|
|
2021-12-21 02:18:32 +00:00
|
|
|
disabledTestPaths = [
|
|
|
|
# Exclude tests that require network access
|
|
|
|
"test/integ/test_sendgrid.py"
|
|
|
|
"live_test.py"
|
2021-02-05 17:12:51 +00:00
|
|
|
];
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"sendgrid"
|
|
|
|
];
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python client for SendGrid";
|
|
|
|
homepage = "https://github.com/sendgrid/sendgrid-python";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|