nixpkgs/pkgs/development/python-modules/sendgrid/default.nix
Ihar Hrachyshka 567e8dfd8e
treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

61 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
cryptography,
ecdsa,
fetchFromGitHub,
flask,
pytestCheckHook,
python-http-client,
pyyaml,
setuptools,
starkbank-ecdsa,
werkzeug,
}:
buildPythonPackage rec {
pname = "sendgrid";
version = "6.12.5";
pyproject = true;
src = fetchFromGitHub {
owner = pname;
repo = "sendgrid-python";
tag = version;
hash = "sha256-7r1FHcGmHRQK9mfpV3qcuZlIe7G6CIyarnpWLjduw4E=";
};
pythonRelaxDeps = [ "cryptography" ];
build-system = [ setuptools ];
dependencies = [
cryptography
ecdsa
python-http-client
starkbank-ecdsa
];
nativeCheckInputs = [
flask
pytestCheckHook
pyyaml
werkzeug
];
disabledTestPaths = [
# Exclude tests that require network access
"test/integ/test_sendgrid.py"
"live_test.py"
];
pythonImportsCheck = [ "sendgrid" ];
meta = {
description = "Python client for SendGrid";
homepage = "https://github.com/sendgrid/sendgrid-python";
changelog = "https://github.com/sendgrid/sendgrid-python/blob/${src.tag}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}