2023-02-02 15:00:31 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pythonOlder
|
|
|
|
, pytestCheckHook
|
|
|
|
, pamqp
|
|
|
|
, yarl
|
|
|
|
, setuptools
|
|
|
|
, poetry-core
|
|
|
|
, aiomisc
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aiormq";
|
2023-02-22 12:28:18 +01:00
|
|
|
version = "6.7.2";
|
2023-02-02 15:00:31 +01:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mosquito";
|
|
|
|
repo = pname;
|
2023-02-22 12:28:18 +01:00
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-ujRw+trXOZaCRsZdkE3WoomOSdYoQkHmtlyFg1mp3Sg=";
|
2023-02-02 15:00:31 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
poetry-core
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
pamqp
|
|
|
|
yarl
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2023-02-22 12:28:18 +01:00
|
|
|
|
2023-02-02 15:00:31 +01:00
|
|
|
checkInputs = [
|
|
|
|
aiomisc
|
|
|
|
];
|
2023-02-22 12:28:18 +01:00
|
|
|
|
2023-02-02 15:00:31 +01:00
|
|
|
# Tests attempt to connect to a RabbitMQ server
|
|
|
|
disabledTestPaths = [
|
|
|
|
"tests/test_channel.py"
|
|
|
|
"tests/test_connection.py"
|
|
|
|
];
|
2023-02-22 12:28:18 +01:00
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"aiormq"
|
|
|
|
];
|
2023-02-02 15:00:31 +01:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "AMQP 0.9.1 asynchronous client library";
|
|
|
|
homepage = "https://github.com/mosquito/aiormq";
|
2023-02-22 12:25:59 +01:00
|
|
|
changelog = "https://github.com/mosquito/aiormq/releases/tag/${version}";
|
2023-02-02 15:00:31 +01:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ emilytrau ];
|
|
|
|
};
|
|
|
|
}
|