diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2022-06-02 21:10:32 +0200 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2022-06-02 21:10:32 +0200 |
commit | 45bd51ee224605ece09d0a93f842080bbbbc08a8 (patch) | |
tree | df2da9801398a4b976f57f1d15dac80373e15102 | |
parent | 8407184d50a4cb0dbed5fba76d26451ce32fe69b (diff) |
python310Packages.aiosmtplib: init at 1.1.6
-rw-r--r-- | pkgs/development/python-modules/aiosmtplib/default.nix | 57 | ||||
-rw-r--r-- | pkgs/top-level/python-packages.nix | 2 |
2 files changed, 59 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/aiosmtplib/default.nix b/pkgs/development/python-modules/aiosmtplib/default.nix new file mode 100644 index 0000000000000..a3a2e8295a0da --- /dev/null +++ b/pkgs/development/python-modules/aiosmtplib/default.nix @@ -0,0 +1,57 @@ +{ lib +, aiosmtpd +, buildPythonPackage +, fetchFromGitHub +, fetchpatch +, hypothesis +, poetry-core +, pytest-asyncio +, pytestCheckHook +, pythonOlder +}: + +buildPythonPackage rec { + pname = "aiosmtplib"; + version = "1.1.6"; + format = "pyproject"; + + disabled = pythonOlder "3.7"; + + src = fetchFromGitHub { + owner = "cole"; + repo = pname; + rev = "v${version}"; + hash = "sha256-bo+u3I+ZX95UYkEam2TB6d6rvbYKa5Qu/9oNX5le478="; + }; + + nativeBuildInputs = [ + poetry-core + ]; + + checkInputs = [ + aiosmtpd + hypothesis + pytest-asyncio + pytestCheckHook + ]; + + patches = [ + # Switch to poetry-core, https://github.com/cole/aiosmtplib/pull/183 + (fetchpatch { + name = "switch-to-poetry-core.patch"; + url = "https://github.com/cole/aiosmtplib/commit/3aba1c132d9454e05d4281f4c8aa618b4e1b783d.patch"; + hash = "sha256-KlA46gD6swfJ/3OLO3xWZWa66Gx1/izmUMQ60PQy0po="; + }) + ]; + + pythonImportsCheck = [ + "aiosmtplib" + ]; + + meta = with lib; { + description = "Module which provides a SMTP client"; + homepage = "https://github.com/cole/aiosmtplib"; + license = with licenses; [ mit ]; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index bd2f70d4a0206..69fca68c1f52d 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -411,6 +411,8 @@ in { aiosmtpd = callPackage ../development/python-modules/aiosmtpd { }; + aiosmtplib = callPackage ../development/python-modules/aiosmtplib { }; + aiosqlite = callPackage ../development/python-modules/aiosqlite { }; aiosteamist = callPackage ../development/python-modules/aiosteamist { }; |