Files
nixpkgs/pkgs/development/python-modules/kombu/default.nix
Ihar Hrachyshka cca3b04b44 treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 19:01:23 +01:00

105 lines
2.0 KiB
Nix

{
lib,
amqp,
azure-identity,
azure-servicebus,
azure-storage-queue,
boto3,
buildPythonPackage,
confluent-kafka,
fetchPypi,
google-cloud-pubsub,
google-cloud-monitoring,
hypothesis,
kazoo,
msgpack,
packaging,
pycurl,
pymongo,
#, pyro4
pytestCheckHook,
pythonOlder,
pyyaml,
redis,
setuptools,
sqlalchemy,
typing-extensions,
tzdata,
urllib3,
vine,
}:
buildPythonPackage rec {
pname = "kombu";
version = "5.5.4";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchPypi {
inherit pname version;
hash = "sha256-iGYAFoJ16+rak7iI6DE1L+V4FoNC8NHVgz2Iug2Ec2M=";
};
build-system = [ setuptools ];
propagatedBuildInputs = [
amqp
packaging
tzdata
vine
]
++ lib.optionals (pythonOlder "3.10") [ typing-extensions ];
optional-dependencies = {
msgpack = [ msgpack ];
yaml = [ pyyaml ];
redis = [ redis ];
mongodb = [ pymongo ];
sqs = [
boto3
urllib3
pycurl
];
zookeeper = [ kazoo ];
sqlalchemy = [ sqlalchemy ];
azurestoragequeues = [
azure-identity
azure-storage-queue
];
azureservicebus = [ azure-servicebus ];
confluentkafka = [ confluent-kafka ];
gcpubsub = [
google-cloud-pubsub
google-cloud-monitoring
];
# pyro4 doesn't support Python 3.11
#pyro = [
# pyro4
#];
};
nativeCheckInputs = [
hypothesis
pytestCheckHook
]
++ lib.flatten (lib.attrValues optional-dependencies);
pythonImportsCheck = [ "kombu" ];
disabledTests = [
# Disable pyro4 test
"test_driver_version"
# AssertionError: assert [call('WATCH'..., 'test-tag')] ==...
"test_global_keyprefix_transaction"
];
meta = {
description = "Messaging library for Python";
homepage = "https://github.com/celery/kombu";
changelog = "https://github.com/celery/kombu/blob/v${version}/Changelog.rst";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ fab ];
};
}