1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, flask
5, pytestCheckHook
6, python-http-client
7, pyyaml
8, starkbank-ecdsa
9, werkzeug
10}:
11
12buildPythonPackage rec {
13 pname = "sendgrid";
14 version = "6.9.1";
15 format = "setuptools";
16
17 src = fetchFromGitHub {
18 owner = pname;
19 repo = "sendgrid-python";
20 rev = version;
21 sha256 = "sha256-u7qakmJ9pKV1zonILEvMHxzMF6EaY+ZJUfh5s3TTH5w=";
22 };
23
24 propagatedBuildInputs = [
25 python-http-client
26 starkbank-ecdsa
27 ];
28
29 checkInputs = [
30 flask
31 pytestCheckHook
32 pyyaml
33 werkzeug
34 ];
35
36 # Exclude tests that require network access
37 pytestFlagsArray = [
38 "--ignore test/test_sendgrid.py"
39 "--ignore live_test.py"
40 ];
41
42 pythonImportsCheck = [
43 "sendgrid"
44 ];
45
46 meta = with lib; {
47 description = "Python client for SendGrid";
48 homepage = "https://github.com/sendgrid/sendgrid-python";
49 license = with licenses; [ mit ];
50 maintainers = with maintainers; [ fab ];
51 };
52}