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