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.

64 lines
1.1 KiB
Nix
Raw Normal View History

2023-02-02 14:00:31 +00:00
{ lib
, aiomisc-pytest
2023-02-02 14:00:31 +00:00
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, pytestCheckHook
, pamqp
, yarl
, setuptools
, poetry-core
, aiomisc
}:
buildPythonPackage rec {
pname = "aiormq";
version = "6.7.4";
2023-02-02 14:00:31 +00:00
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "mosquito";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-vORo5Kqy+Rg8WCyFU5lyQHS4EALYkycY4XxYhABV/4A=";
2023-02-02 14:00:31 +00:00
};
nativeBuildInputs = [
setuptools
poetry-core
];
propagatedBuildInputs = [
pamqp
yarl
];
nativeCheckInputs = [
pytestCheckHook
];
2023-02-02 14:00:31 +00:00
checkInputs = [
aiomisc-pytest
2023-02-02 14:00:31 +00:00
];
2023-02-02 14:00:31 +00:00
# Tests attempt to connect to a RabbitMQ server
disabledTestPaths = [
"tests/test_channel.py"
"tests/test_connection.py"
];
pythonImportsCheck = [
"aiormq"
];
2023-02-02 14:00:31 +00: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 14:00:31 +00:00
license = licenses.asl20;
maintainers = with maintainers; [ emilytrau ];
};
}