Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at gcc-offload 47 lines 942 B view raw
1{ 2 lib, 3 aiosmtpd, 4 buildPythonPackage, 5 fetchFromGitHub, 6 hypothesis, 7 hatchling, 8 pytest-asyncio, 9 pytestCheckHook, 10 pythonOlder, 11 trustme, 12}: 13 14buildPythonPackage rec { 15 pname = "aiosmtplib"; 16 version = "3.0.2"; 17 pyproject = true; 18 19 disabled = pythonOlder "3.7"; 20 21 src = fetchFromGitHub { 22 owner = "cole"; 23 repo = "aiosmtplib"; 24 rev = "refs/tags/v${version}"; 25 hash = "sha256-1GuxlgNvzVv6hEQY1Mkv7NxAoOik9gpIS90a6flfC+k="; 26 }; 27 28 build-system = [ hatchling ]; 29 30 nativeCheckInputs = [ 31 aiosmtpd 32 hypothesis 33 pytest-asyncio 34 pytestCheckHook 35 trustme 36 ]; 37 38 pythonImportsCheck = [ "aiosmtplib" ]; 39 40 meta = with lib; { 41 description = "Module which provides a SMTP client"; 42 homepage = "https://github.com/cole/aiosmtplib"; 43 changelog = "https://github.com/cole/aiosmtplib/releases/tag/v${version}"; 44 license = with licenses; [ mit ]; 45 maintainers = with maintainers; [ fab ]; 46 }; 47}