2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
amqp,
|
|
|
|
azure-identity,
|
|
|
|
azure-servicebus,
|
|
|
|
azure-storage-queue,
|
|
|
|
backports-zoneinfo,
|
|
|
|
boto3,
|
|
|
|
buildPythonPackage,
|
|
|
|
confluent-kafka,
|
|
|
|
fetchPypi,
|
|
|
|
hypothesis,
|
|
|
|
kazoo,
|
|
|
|
msgpack,
|
|
|
|
pycurl,
|
|
|
|
pymongo,
|
2023-10-09 19:29:22 +00:00
|
|
|
#, pyro4
|
2024-07-27 06:49:29 +00:00
|
|
|
pytestCheckHook,
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonOlder,
|
|
|
|
pyyaml,
|
|
|
|
redis,
|
|
|
|
sqlalchemy,
|
|
|
|
typing-extensions,
|
|
|
|
urllib3,
|
|
|
|
vine,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "kombu";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "5.3.7";
|
2022-01-13 20:06:32 +00:00
|
|
|
format = "setuptools";
|
2021-06-28 23:13:55 +00:00
|
|
|
|
2023-08-10 07:59:29 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-ARxM2aNVwUod6NNdJXMUodJFbVK3FAOIVhrKw88al78=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs =
|
|
|
|
[
|
|
|
|
amqp
|
|
|
|
vine
|
|
|
|
]
|
|
|
|
++ lib.optionals (pythonOlder "3.10") [ typing-extensions ]
|
|
|
|
++ lib.optionals (pythonOlder "3.9") [ backports-zoneinfo ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
optional-dependencies = {
|
2024-06-05 15:53:02 +00:00
|
|
|
msgpack = [ msgpack ];
|
|
|
|
yaml = [ pyyaml ];
|
|
|
|
redis = [ redis ];
|
|
|
|
mongodb = [ pymongo ];
|
2023-10-09 19:29:22 +00:00
|
|
|
sqs = [
|
|
|
|
boto3
|
|
|
|
urllib3
|
|
|
|
pycurl
|
|
|
|
];
|
2024-06-05 15:53:02 +00:00
|
|
|
zookeeper = [ kazoo ];
|
|
|
|
sqlalchemy = [ sqlalchemy ];
|
2023-10-09 19:29:22 +00:00
|
|
|
azurestoragequeues = [
|
|
|
|
azure-identity
|
|
|
|
azure-storage-queue
|
|
|
|
];
|
2024-06-05 15:53:02 +00:00
|
|
|
azureservicebus = [ azure-servicebus ];
|
|
|
|
confluentkafka = [ confluent-kafka ];
|
2023-10-09 19:29:22 +00:00
|
|
|
# pyro4 doesn't suppport Python 3.11
|
|
|
|
#pyro = [
|
|
|
|
# pyro4
|
|
|
|
#];
|
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2023-07-15 17:15:38 +00:00
|
|
|
hypothesis
|
2024-07-27 06:49:29 +00:00
|
|
|
pytestCheckHook
|
|
|
|
] ++ lib.flatten (lib.attrValues optional-dependencies);
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "kombu" ];
|
2022-01-13 20:06:32 +00:00
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
disabledTests = [
|
|
|
|
# Disable pyro4 test
|
|
|
|
"test_driver_version"
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Messaging library for Python";
|
2022-01-13 20:06:32 +00:00
|
|
|
homepage = "https://github.com/celery/kombu";
|
2024-01-02 11:29:13 +00:00
|
|
|
changelog = "https://github.com/celery/kombu/blob/v${version}/Changelog.rst";
|
2022-01-13 20:06:32 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|