nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 amqp,
4 azure-identity,
5 azure-servicebus,
6 azure-storage-queue,
7 boto3,
8 buildPythonPackage,
9 confluent-kafka,
10 fetchFromGitHub,
11 google-cloud-pubsub,
12 google-cloud-monitoring,
13 grpcio,
14 hypothesis,
15 kazoo,
16 msgpack,
17 packaging,
18 protobuf,
19 pycurl,
20 pymongo,
21 #, pyro4
22 pytestCheckHook,
23 pyyaml,
24 redis,
25 setuptools,
26 sqlalchemy,
27 tzdata,
28 urllib3,
29 vine,
30}:
31
32buildPythonPackage rec {
33 pname = "kombu";
34 version = "5.6.2";
35 pyproject = true;
36
37 src = fetchFromGitHub {
38 owner = "celery";
39 repo = "kombu";
40 tag = "v${version}";
41 hash = "sha256-J0cEQsMHKethrfDVDDvIjc/iZpoCYLH9INHtgKmH9Pk=";
42 };
43
44 build-system = [ setuptools ];
45
46 dependencies = [
47 amqp
48 packaging
49 tzdata
50 vine
51 ];
52
53 optional-dependencies = {
54 msgpack = [ msgpack ];
55 yaml = [ pyyaml ];
56 redis = [ redis ];
57 mongodb = [ pymongo ];
58 sqs = [
59 boto3
60 urllib3
61 pycurl
62 ];
63 zookeeper = [ kazoo ];
64 sqlalchemy = [ sqlalchemy ];
65 azurestoragequeues = [
66 azure-identity
67 azure-storage-queue
68 ];
69 azureservicebus = [ azure-servicebus ];
70 confluentkafka = [ confluent-kafka ];
71 gcpubsub = [
72 google-cloud-pubsub
73 google-cloud-monitoring
74 grpcio
75 protobuf
76 ];
77 # pyro4 doesn't support Python 3.11
78 #pyro = [
79 # pyro4
80 #];
81 };
82
83 nativeCheckInputs = [
84 hypothesis
85 pytestCheckHook
86 ]
87 ++ lib.concatAttrValues optional-dependencies;
88
89 pythonImportsCheck = [ "kombu" ];
90
91 disabledTests = [
92 # Disable pyro4 test
93 "test_driver_version"
94 # AssertionError: assert [call('WATCH'..., 'test-tag')] ==...
95 "test_global_keyprefix_transaction"
96 ];
97
98 meta = {
99 description = "Messaging library for Python";
100 homepage = "https://github.com/celery/kombu";
101 changelog = "https://github.com/celery/kombu/blob/v${version}/Changelog.rst";
102 license = lib.licenses.bsd3;
103 maintainers = with lib.maintainers; [ fab ];
104 };
105}