Merge pull request #251057 from fabaff/kombu-pyro4

python311Packages.kombu: add optional-dependencies

authored by Fabian Affolter and committed by GitHub 7c137ef8 7470fb2f

+60 -9
+60 -9
pkgs/development/python-modules/kombu/default.nix
··· 2 2 , amqp 3 3 , azure-identity 4 4 , azure-servicebus 5 + , azure-storage-queue 5 6 , backports-zoneinfo 7 + , boto3 6 8 , buildPythonPackage 7 9 , case 10 + , confluent-kafka 8 11 , fetchPypi 9 12 , hypothesis 10 - , pyro4 13 + , kazoo 14 + , msgpack 15 + , pycurl 16 + , pymongo 17 + #, pyro4 11 18 , pytestCheckHook 12 19 , pythonOlder 13 - , pytz 14 - , vine 20 + , pyyaml 21 + , redis 22 + , sqlalchemy 15 23 , typing-extensions 24 + , urllib3 25 + , vine 16 26 }: 17 27 18 28 buildPythonPackage rec { ··· 36 46 backports-zoneinfo 37 47 ]; 38 48 49 + passthru.optional-dependencies = { 50 + msgpack = [ 51 + msgpack 52 + ]; 53 + yaml = [ 54 + pyyaml 55 + ]; 56 + redis = [ 57 + redis 58 + ]; 59 + mongodb = [ 60 + pymongo 61 + ]; 62 + sqs = [ 63 + boto3 64 + urllib3 65 + pycurl 66 + ]; 67 + zookeeper = [ 68 + kazoo 69 + ]; 70 + sqlalchemy = [ 71 + sqlalchemy 72 + ]; 73 + azurestoragequeues = [ 74 + azure-identity 75 + azure-storage-queue 76 + ]; 77 + azureservicebus = [ 78 + azure-servicebus 79 + ]; 80 + confluentkafka = [ 81 + confluent-kafka 82 + ]; 83 + # pyro4 doesn't suppport Python 3.11 84 + #pyro = [ 85 + # pyro4 86 + #]; 87 + }; 88 + 39 89 nativeCheckInputs = [ 40 - azure-identity 41 - azure-servicebus 42 90 case 43 91 hypothesis 44 - pyro4 45 92 pytestCheckHook 46 - pytz 47 - ]; 93 + ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies); 48 94 49 95 pythonImportsCheck = [ 50 96 "kombu" 51 97 ]; 52 98 99 + disabledTests = [ 100 + # Disable pyro4 test 101 + "test_driver_version" 102 + ]; 103 + 53 104 meta = with lib; { 54 - changelog = "https://github.com/celery/kombu/releases/tag/v${version}"; 55 105 description = "Messaging library for Python"; 56 106 homepage = "https://github.com/celery/kombu"; 107 + changelog = "https://github.com/celery/kombu/releases/tag/v${version}"; 57 108 license = licenses.bsd3; 58 109 maintainers = with maintainers; [ fab ]; 59 110 };