nixpkgs/pkgs/development/python-modules/sendgrid/default.nix
2021-10-18 23:32:53 +02:00

52 lines
996 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, flask
, pytestCheckHook
, python-http-client
, pyyaml
, starkbank-ecdsa
, werkzeug
}:
buildPythonPackage rec {
pname = "sendgrid";
version = "6.8.3";
src = fetchFromGitHub {
owner = pname;
repo = "sendgrid-python";
rev = version;
sha256 = "sha256-kJbpYLM+GpyAHEnO2mqULOYyxIpOrmGeSMd4wJccz/8=";
};
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 ];
# No support for new starkbank-ecdsa releases
broken = true;
};
}