Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

66 lines
1.2 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
blinker,
click,
crochet,
jsonschema,
pika,
pyopenssl,
requests,
service-identity,
tomli,
twisted,
pytest-mock,
pytest-twisted,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "fedora-messaging";
version = "3.8.0";
pyproject = true;
src = fetchFromGitHub {
owner = "fedora-infra";
repo = "fedora-messaging";
tag = "v${version}";
hash = "sha256-2EWeJddhD6tV5jRyr3pvWYQBfq6nq0GxeTgL6MRf/jE=";
};
build-system = [ poetry-core ];
dependencies = [
blinker
click
crochet
jsonschema
pika
pyopenssl
requests
service-identity
tomli
twisted
];
pythonImportsCheck = [ "fedora_messaging" ];
nativeCheckInputs = [
pytest-mock
pytest-twisted
pytestCheckHook
];
enabledTestPaths = [ "tests/unit" ];
meta = {
description = "Library for sending AMQP messages with JSON schema in Fedora infrastructure";
homepage = "https://github.com/fedora-infra/fedora-messaging";
changelog = "https://github.com/fedora-infra/fedora-messaging/releases/tag/${src.tag}";
license = lib.licenses.gpl2Plus;
maintainers = with lib.maintainers; [ erictapen ];
};
}