blob: 82f336a7fd43c12ce79e2eae7bb8f853ab16847c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
{ lib
, buildPythonPackage
, fetchFromGitHub
, flask
, pytestCheckHook
, python-http-client
, pythonOlder
, pyyaml
, starkbank-ecdsa
, six
, werkzeug
}:
buildPythonPackage rec {
pname = "sendgrid";
version = "6.11.0";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = pname;
repo = "sendgrid-python";
rev = "refs/tags/${version}";
hash = "sha256-wcQLdU80pcyEplzL8lnehtToqYiTrX1n5TjmK5zturE=";
};
propagatedBuildInputs = [
python-http-client
starkbank-ecdsa
six
];
nativeCheckInputs = [
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";
changelog = "https://github.com/sendgrid/sendgrid-python/blob/${version}/CHANGELOG.md";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}
|