diff options
author | Emily Trau <me@angus.ws> | 2023-02-03 01:00:31 +1100 |
---|---|---|
committer | Emily Trau <me@angus.ws> | 2023-02-03 23:04:59 +1100 |
commit | ee0d419d3b9741bb0ea8794943a8277b907271a7 (patch) | |
tree | 1bbec26d98226d7753a4d8423a733486b327aa9e /pkgs/development/python-modules/aiormq | |
parent | 7b28196a8e1700e551a21cee3fb388e641040bcb (diff) |
python3Packages.aiormq: init at 6.6.4
Diffstat (limited to 'pkgs/development/python-modules/aiormq')
-rw-r--r-- | pkgs/development/python-modules/aiormq/default.nix | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/aiormq/default.nix b/pkgs/development/python-modules/aiormq/default.nix new file mode 100644 index 0000000000000..747f380266863 --- /dev/null +++ b/pkgs/development/python-modules/aiormq/default.nix @@ -0,0 +1,56 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, pythonOlder +, pytestCheckHook +, pamqp +, yarl +, setuptools +, poetry-core +, aiomisc +}: + +buildPythonPackage rec { + pname = "aiormq"; + version = "6.6.4"; + format = "pyproject"; + + disabled = pythonOlder "3.7"; + + src = fetchFromGitHub { + owner = "mosquito"; + repo = pname; + rev = version; + sha256 = "+zTSaQzBoIHDUQgOpD6xvoruFFHZBb0z5D6uAUo0W5A="; + }; + + nativeBuildInputs = [ + setuptools + poetry-core + ]; + + propagatedBuildInputs = [ + pamqp + yarl + ]; + + nativeCheckInputs = [ + pytestCheckHook + ]; + checkInputs = [ + aiomisc + ]; + # Tests attempt to connect to a RabbitMQ server + disabledTestPaths = [ + "tests/test_channel.py" + "tests/test_connection.py" + ]; + pythonImportsCheck = [ "aiormq" ]; + + meta = with lib; { + description = "AMQP 0.9.1 asynchronous client library"; + homepage = "https://github.com/mosquito/aiormq"; + license = licenses.asl20; + maintainers = with maintainers; [ emilytrau ]; + }; +} |