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-09-26 12:46:18 +00:00
|
|
|
version = "6.8.2";
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = pname;
|
|
|
|
repo = "sendgrid-python";
|
|
|
|
rev = version;
|
2021-09-26 12:46:18 +00:00
|
|
|
sha256 = "sha256-TaewVBWQ6D5TH1TGXlXVBnW7K4HS/cFxJ6bcMv2DB+c=";
|
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"
|
|
|
|
];
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|