32 buildPythonPackage rec {
37 disabled = pythonOlder "3.8";
40 inherit pname version;
41 hash = "sha256-UEoZFA6NMCnVrK2IMwxUHUw/ZMeJ2F+UdWdi2Lyn5wY=";
44 build-system = [ setuptools ];
58 optional-dependencies = {
59 gcs = [ google-cloud-storage ];
60 mongodb = [ pymongo ];
61 msgpack = [ msgpack ];
74 ] ++ lib.flatten (builtins.attrValues optional-dependencies);
77 # test_eventlet touches network
78 "t/unit/concurrency/test_eventlet.py"
79 # test_multi tries to create directories under /var
80 "t/unit/bin/test_multi.py"
81 "t/unit/apps/test_multi.py"
82 # Test requires moto<5
83 "t/unit/backends/test_s3.py"
89 "test_check_privileges_no_fchown"
90 # seems to only fail on higher core counts
91 # AssertionError: assert 3 == 0
92 "test_setup_security_disabled_serializers"
93 # Test is flaky, especially on hydra
95 # Tests fail with pytest-xdist
96 "test_itercapture_limit"
97 "test_stamping_headers_in_options"
98 "test_stamping_with_replace"
100 ++ lib.optionals stdenv.hostPlatform.isDarwin [
101 # Too many open files on hydra
103 "test_with_autoscaler_file_descriptor_safety"
104 "test_with_file_descriptor_safety"
107 pythonImportsCheck = [ "celery" ];
110 inherit (nixosTests) sourcehut;
114 description = "Distributed task queue";
115 homepage = "https://github.com/celery/celery/";
116 changelog = "https://github.com/celery/celery/releases/tag/v${version}";
117 license = licenses.bsd3;
118 maintainers = with maintainers; [ fab ];
119 mainProgram = "celery";