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
|
2022-04-27 09:35:20 +00:00
|
|
|
, six
|
2021-02-05 17:12:51 +00:00
|
|
|
, werkzeug
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "sendgrid";
|
2023-03-27 19:17:25 +00:00
|
|
|
version = "6.10.0";
|
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";
|
2023-03-27 19:17:25 +00:00
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-/un/m4Br0Ylk00fS/U+QKeXwM1Ix5TFedaPhCyScWvs=";
|
2021-02-05 17:12:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
python-http-client
|
|
|
|
starkbank-ecdsa
|
2022-04-27 09:35:20 +00:00
|
|
|
six
|
2021-02-05 17:12:51 +00:00
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-02-05 17:12:51 +00:00
|
|
|
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";
|
2023-03-27 19:17:25 +00:00
|
|
|
changelog = "https://github.com/sendgrid/sendgrid-python/blob/${version}/CHANGELOG.md";
|
2021-02-05 17:12:51 +00:00
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|