Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / aiosmtplib / default.nix
blobdda58fc011e88498427d918bb59790f36750412f
1 { lib
2 , aiosmtpd
3 , buildPythonPackage
4 , fetchFromGitHub
5 , hypothesis
6 , poetry-core
7 , pytest-asyncio
8 , pytestCheckHook
9 , pythonOlder
10 , trustme
13 buildPythonPackage rec {
14   pname = "aiosmtplib";
15   version = "3.0.1";
16   format = "pyproject";
18   disabled = pythonOlder "3.7";
20   src = fetchFromGitHub {
21     owner = "cole";
22     repo = "aiosmtplib";
23     rev = "refs/tags/v${version}";
24     hash = "sha256-67Z+k+PBIGP2oGb/52dMtsapUsHufvFcX+wWiMj5Jsg=";
25   };
27   nativeBuildInputs = [
28     poetry-core
29   ];
31   nativeCheckInputs = [
32     aiosmtpd
33     hypothesis
34     pytest-asyncio
35     pytestCheckHook
36     trustme
37   ];
39   pythonImportsCheck = [
40     "aiosmtplib"
41   ];
43   meta = with lib; {
44     description = "Module which provides a SMTP client";
45     homepage = "https://github.com/cole/aiosmtplib";
46     changelog = "https://github.com/cole/aiosmtplib/releases/tag/v${version}";
47     license = with licenses; [ mit ];
48     maintainers = with maintainers; [ fab ];
49   };