Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / sendgrid / default.nix
blob704549e987d7b64763341011b80f5596b2388aac
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , flask
5 , pytestCheckHook
6 , python-http-client
7 , pyyaml
8 , starkbank-ecdsa
9 , werkzeug
12 buildPythonPackage rec {
13   pname = "sendgrid";
14   version = "6.6.0";
16   src = fetchFromGitHub {
17     owner = pname;
18     repo = "sendgrid-python";
19     rev = version;
20     sha256 = "sha256-R9ASHDIGuPRh4yf0FAlpjUZ6QAakYs35EFSqAPc02Q8=";
21   };
23   propagatedBuildInputs = [
24     python-http-client
25     starkbank-ecdsa
26   ];
28   checkInputs = [
29     flask
30     pytestCheckHook
31     pyyaml
32     werkzeug
33   ];
35   # Exclude tests that require network access
36   pytestFlagsArray = [
37     "--ignore test/test_sendgrid.py"
38     "--ignore live_test.py"
39   ];
41   pythonImportsCheck = [ "sendgrid" ];
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   };