2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, flask
|
|
|
|
, pytestCheckHook
|
|
|
|
, python-http-client
|
|
|
|
, pyyaml
|
|
|
|
, starkbank-ecdsa
|
|
|
|
, werkzeug
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "sendgrid";
|
2021-12-06 16:07:01 +00:00
|
|
|
version = "6.9.2";
|
|
|
|
format = "setuptools";
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = pname;
|
|
|
|
repo = "sendgrid-python";
|
|
|
|
rev = version;
|
2021-12-06 16:07:01 +00:00
|
|
|
sha256 = "sha256-eqmYuVW912E8hiVReLAoclmNDc2+gOIcUo9lRUx9AwM=";
|
2021-02-05 17:12:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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"
|
|
|
|
];
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|