depot/third_party/nixpkgs/pkgs/development/python-modules/resend/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

44 lines
893 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
pythonOlder,
pytestCheckHook,
requests,
typing-extensions,
}:
buildPythonPackage rec {
pname = "resend";
version = "2.3.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "resend";
repo = "resend-python";
rev = "refs/tags/v${version}";
hash = "sha256-cgeHkueH060vDvx3r6QP6e72l10zZ6mhUosWxIakG2g=";
};
build-system = [ setuptools ];
dependencies = [
requests
typing-extensions
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "resend" ];
meta = with lib; {
description = "SDK for Resend";
homepage = "https://github.com/resend/resend-python";
changelog = "https://github.com/resend/resend-python/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}