1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 pythonOlder, 7 pytestCheckHook, 8 requests, 9 typing-extensions, 10}: 11 12buildPythonPackage rec { 13 pname = "resend"; 14 version = "2.14.0"; 15 pyproject = true; 16 17 disabled = pythonOlder "3.7"; 18 19 src = fetchFromGitHub { 20 owner = "resend"; 21 repo = "resend-python"; 22 tag = "v${version}"; 23 hash = "sha256-rRaW32hKfbYOKuh5lcPWiq6sD35tUzRS8ZCsyAyy4Mo="; 24 }; 25 26 build-system = [ setuptools ]; 27 28 dependencies = [ 29 requests 30 typing-extensions 31 ]; 32 33 nativeCheckInputs = [ pytestCheckHook ]; 34 35 pythonImportsCheck = [ "resend" ]; 36 37 meta = with lib; { 38 description = "SDK for Resend"; 39 homepage = "https://github.com/resend/resend-python"; 40 changelog = "https://github.com/resend/resend-python/releases/tag/${src.tag}"; 41 license = licenses.mit; 42 maintainers = with maintainers; [ fab ]; 43 }; 44}