81047829ea
GitOrigin-RevId: 48d63e924a2666baf37f4f14a18f19347fbd54a2
55 lines
996 B
Nix
55 lines
996 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, flask
|
|
, pytestCheckHook
|
|
, python-http-client
|
|
, pythonOlder
|
|
, pyyaml
|
|
, starkbank-ecdsa
|
|
, werkzeug
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "sendgrid";
|
|
version = "6.9.6";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = pname;
|
|
repo = "sendgrid-python";
|
|
rev = version;
|
|
sha256 = "sha256-6MkAtkbKVoa8UatG92RzbCdAM+WsQN2WnOIh4pRoUVk=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
python-http-client
|
|
starkbank-ecdsa
|
|
];
|
|
|
|
checkInputs = [
|
|
flask
|
|
pytestCheckHook
|
|
pyyaml
|
|
werkzeug
|
|
];
|
|
|
|
disabledTestPaths = [
|
|
# Exclude tests that require network access
|
|
"test/integ/test_sendgrid.py"
|
|
"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 ];
|
|
};
|
|
}
|