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.7.0";
15
16 src = fetchFromGitHub {
17 owner = pname;
18 repo = "sendgrid-python";
19 rev = version;
20 sha256 = "sha256-Y0h5Aiu85/EWCmSc+eCtK6ZaPuu/LYZiwhXOx0XhfwQ=";
21 };
22
23 propagatedBuildInputs = [
24 python-http-client
25 starkbank-ecdsa
26 ];
27
28 checkInputs = [
29 flask
30 pytestCheckHook
31 pyyaml
32 werkzeug
33 ];
34
35 # Exclude tests that require network access
36 pytestFlagsArray = [
37 "--ignore test/test_sendgrid.py"
38 "--ignore live_test.py"
39 ];
40
41 pythonImportsCheck = [ "sendgrid" ];
42
43 meta = with lib; {
44 description = "Python client for SendGrid";
45 homepage = "https://github.com/sendgrid/sendgrid-python";
46 license = with licenses; [ mit ];
47 maintainers = with maintainers; [ fab ];
48 };
49}