nixpkgs/pkgs/development/python-modules/aiormq/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

67 lines
1.2 KiB
Nix
Raw Permalink Normal View History

2023-02-02 15:00:31 +01:00
{ lib
, aiomisc-pytest
2023-02-02 15:00:31 +01:00
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, pythonRelaxDepsHook
2023-02-02 15:00:31 +01:00
, pytestCheckHook
, pamqp
, yarl
, poetry-core
}:
buildPythonPackage rec {
pname = "aiormq";
version = "6.8.0";
pyproject = true;
2023-02-02 15:00:31 +01:00
disabled = pythonOlder "3.8";
2023-02-02 15:00:31 +01:00
src = fetchFromGitHub {
owner = "mosquito";
repo = "aiormq";
rev = "refs/tags/${version}";
hash = "sha256-XD1g4JXQJlJyXuZbo4hYW7cwQhy8+p4/inwNw2WOD9Y=";
2023-02-02 15:00:31 +01:00
};
nativeBuildInputs = [
poetry-core
pythonRelaxDepsHook
];
pythonRelaxDeps = [
"pamqp"
2023-02-02 15:00:31 +01:00
];
propagatedBuildInputs = [
pamqp
yarl
];
nativeCheckInputs = [
pytestCheckHook
];
2023-02-02 15:00:31 +01:00
checkInputs = [
aiomisc-pytest
2023-02-02 15:00:31 +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"
];
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";
changelog = "https://github.com/mosquito/aiormq/releases/tag/${version}";
2023-02-02 15:00:31 +01:00
license = licenses.asl20;
maintainers = with maintainers; [ emilytrau ];
};
}