2021-01-22 09:44:06 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, flask
|
|
|
|
, pytestCheckHook
|
|
|
|
, python-http-client
|
|
|
|
, pyyaml
|
|
|
|
, starkbank-ecdsa
|
|
|
|
, werkzeug
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "sendgrid";
|
2021-04-23 13:13:14 +01:00
|
|
|
version = "6.7.0";
|
2021-01-22 09:44:06 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = pname;
|
|
|
|
repo = "sendgrid-python";
|
|
|
|
rev = version;
|
2021-04-23 13:13:14 +01:00
|
|
|
sha256 = "sha256-Y0h5Aiu85/EWCmSc+eCtK6ZaPuu/LYZiwhXOx0XhfwQ=";
|
2021-01-22 09:44:06 +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"
|
|
|
|
];
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|