From 3756d4b8ccf7282fc3756669da179d0a1eeb7382 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 22 Feb 2023 12:25:59 +0100 Subject: [PATCH 1/4] python310Packages.aiormq: add changelog to meta --- pkgs/development/python-modules/aiormq/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/development/python-modules/aiormq/default.nix b/pkgs/development/python-modules/aiormq/default.nix index 747f38026686..24f3c15b5d78 100644 --- a/pkgs/development/python-modules/aiormq/default.nix +++ b/pkgs/development/python-modules/aiormq/default.nix @@ -50,6 +50,7 @@ buildPythonPackage rec { meta = with lib; { description = "AMQP 0.9.1 asynchronous client library"; homepage = "https://github.com/mosquito/aiormq"; + changelog = "https://github.com/mosquito/aiormq/releases/tag/${version}"; license = licenses.asl20; maintainers = with maintainers; [ emilytrau ]; }; From f233ece1b7021a32051b9ddae8116c2299c8d7d3 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 22 Feb 2023 12:28:18 +0100 Subject: [PATCH 2/4] python310Packages.aiormq: 6.6.4 -> 6.7.2 Diff: https://github.com/mosquito/aiormq/compare/refs/tags/6.6.4...6.7.2 Changelog: https://github.com/mosquito/aiormq/releases/tag/6.7.2 --- pkgs/development/python-modules/aiormq/default.nix | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/aiormq/default.nix b/pkgs/development/python-modules/aiormq/default.nix index 24f3c15b5d78..b8ec9619b139 100644 --- a/pkgs/development/python-modules/aiormq/default.nix +++ b/pkgs/development/python-modules/aiormq/default.nix @@ -12,7 +12,7 @@ buildPythonPackage rec { pname = "aiormq"; - version = "6.6.4"; + version = "6.7.2"; format = "pyproject"; disabled = pythonOlder "3.7"; @@ -20,8 +20,8 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "mosquito"; repo = pname; - rev = version; - sha256 = "+zTSaQzBoIHDUQgOpD6xvoruFFHZBb0z5D6uAUo0W5A="; + rev = "refs/tags/${version}"; + hash = "sha256-ujRw+trXOZaCRsZdkE3WoomOSdYoQkHmtlyFg1mp3Sg="; }; nativeBuildInputs = [ @@ -37,15 +37,20 @@ buildPythonPackage rec { nativeCheckInputs = [ pytestCheckHook ]; + checkInputs = [ aiomisc ]; + # Tests attempt to connect to a RabbitMQ server disabledTestPaths = [ "tests/test_channel.py" "tests/test_connection.py" ]; - pythonImportsCheck = [ "aiormq" ]; + + pythonImportsCheck = [ + "aiormq" + ]; meta = with lib; { description = "AMQP 0.9.1 asynchronous client library"; From 3f766151313239d5150ca4c66ec475fe170288e9 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 22 Feb 2023 13:01:22 +0100 Subject: [PATCH 3/4] python310Packages.aio-pika: add changelog to meta --- pkgs/development/python-modules/aio-pika/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/development/python-modules/aio-pika/default.nix b/pkgs/development/python-modules/aio-pika/default.nix index fddabeccd6a1..aaa67744dc31 100644 --- a/pkgs/development/python-modules/aio-pika/default.nix +++ b/pkgs/development/python-modules/aio-pika/default.nix @@ -50,6 +50,7 @@ buildPythonPackage rec { meta = with lib; { description = "AMQP 0.9 client designed for asyncio and humans"; homepage = "https://github.com/mosquito/aio-pika"; + changelog = "https://github.com/mosquito/aio-pika/blob/${version}/CHANGELOG.md"; license = licenses.asl20; maintainers = with maintainers; [ emilytrau ]; }; From 3361a24364612c7286d2b78ae5bfd376883267d6 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 22 Feb 2023 13:08:20 +0100 Subject: [PATCH 4/4] python310Packages.aio-pika: 8.3.0 -> 9.0.4 Diff: https://github.com/mosquito/aio-pika/compare/refs/tags/8.3.0...9.0.4 Changelog: https://github.com/mosquito/aio-pika/blob/9.0.4/CHANGELOG.md --- .../python-modules/aio-pika/default.nix | 34 ++++++++++++++----- 1 file changed, 25 insertions(+), 9 deletions(-) diff --git a/pkgs/development/python-modules/aio-pika/default.nix b/pkgs/development/python-modules/aio-pika/default.nix index aaa67744dc31..ff0a25d26594 100644 --- a/pkgs/development/python-modules/aio-pika/default.nix +++ b/pkgs/development/python-modules/aio-pika/default.nix @@ -1,41 +1,54 @@ { lib +, aiomisc +, aiormq , buildPythonPackage , fetchFromGitHub -, pythonOlder +, poetry-core , pytestCheckHook -, aiormq -, yarl -, aiomisc +, pythonOlder +, setuptools , shortuuid +, typing-extensions +, yarl }: buildPythonPackage rec { pname = "aio-pika"; - version = "8.3.0"; + version = "9.0.4"; + format = "pyproject"; disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "mosquito"; repo = pname; - rev = version; - sha256 = "CYfj6V/91J7JA8YSctG/FkSHRkwyLKxr27eREbA+MtQ="; + rev = "refs/tags/${version}"; + hash = "sha256-dY4uSkiAZz8kjeqt0QwehogljBrxqhVI9LmRE/I8HKA="; }; + nativeBuildInputs = [ + setuptools + poetry-core + ]; + propagatedBuildInputs = [ aiormq yarl + ] ++ lib.optionals (pythonOlder "3.8") [ + typing-extensions ]; nativeCheckInputs = [ pytestCheckHook ]; + checkInputs = [ aiomisc shortuuid ]; - # Tests attempt to connect to a RabbitMQ server + disabledTestPaths = [ + # Tests attempt to connect to a RabbitMQ server "tests/test_amqp.py" "tests/test_amqp_robust.py" "tests/test_amqp_robust_proxy.py" @@ -45,7 +58,10 @@ buildPythonPackage rec { "tests/test_rpc.py" "tests/test_types.py" ]; - pythonImportsCheck = [ "aio_pika" ]; + + pythonImportsCheck = [ + "aio_pika" + ]; meta = with lib; { description = "AMQP 0.9 client designed for asyncio and humans";