From dc2f2bebce3f0f7e669ce0ea4c0703a9c793586a Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 22 Jan 2021 10:44:06 +0100 Subject: [PATCH] python3Packages.sendgrid: init at 6.5.0 --- .../python-modules/sendgrid/default.nix | 49 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 51 insertions(+) create mode 100644 pkgs/development/python-modules/sendgrid/default.nix diff --git a/pkgs/development/python-modules/sendgrid/default.nix b/pkgs/development/python-modules/sendgrid/default.nix new file mode 100644 index 000000000000..77cd35938635 --- /dev/null +++ b/pkgs/development/python-modules/sendgrid/default.nix @@ -0,0 +1,49 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, flask +, pytestCheckHook +, python-http-client +, pyyaml +, starkbank-ecdsa +, werkzeug +}: + +buildPythonPackage rec { + pname = "sendgrid"; + version = "6.5.0"; + + src = fetchFromGitHub { + owner = pname; + repo = "sendgrid-python"; + rev = version; + sha256 = "14kqjdv49486ksc1s0m0hc4k5nf9vn1v1g489mpib01hiiqxjp1b"; + }; + + propagatedBuildInputs = [ + python-http-client + starkbank-ecdsa + ]; + + checkInputs = [ + flask + pytestCheckHook + pyyaml + werkzeug + ]; + + # Exclude tests that require network access + pytestFlagsArray = [ + "--ignore test/test_sendgrid.py" + "--ignore live_test.py" + ]; + + pythonImportsCheck = [ "sendgrid" ]; + + meta = with lib; { + description = "Python client for SendGrid"; + homepage = "https://github.com/sendgrid/sendgrid-python"; + license = with licenses; [ mit ]; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 6cb0bf0eec8c..fe4b5be4c5c5 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -6981,6 +6981,8 @@ in { send2trash = callPackage ../development/python-modules/send2trash { }; + sendgrid = callPackage ../development/python-modules/sendgrid { }; + sentencepiece = callPackage ../development/python-modules/sentencepiece { inherit (pkgs) sentencepiece pkg-config; }; sentinel = callPackage ../development/python-modules/sentinel { };