Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
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.3.0"; 15 pyproject = true; 16 17 disabled = pythonOlder "3.7"; 18 19 src = fetchFromGitHub { 20 owner = "resend"; 21 repo = "resend-python"; 22 rev = "refs/tags/v${version}"; 23 hash = "sha256-cgeHkueH060vDvx3r6QP6e72l10zZ6mhUosWxIakG2g="; 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/v${version}"; 41 license = licenses.mit; 42 maintainers = with maintainers; [ fab ]; 43 }; 44}