Unverified Commit d3d4c0ec authored by Sandro Jäckel's avatar Sandro Jäckel
Browse files

python313Packages.pytest-celery: add optional-dependencies

parent fbfff38e
Loading
Loading
Loading
Loading
+24 −1
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  celery,
  debugpy,
  docker,
  fetchFromGitHub,
@@ -11,6 +10,13 @@
  pytest-docker-tools,
  pytest,
  tenacity,

  # optional dependencies
  redis,
  python-memcached,
  boto3,
  botocore,
  urllib3,
}:

buildPythonPackage rec {
@@ -53,6 +59,23 @@ buildPythonPackage rec {
    tenacity
  ];

  optional-dependencies = {
    all = [
      redis
      python-memcached
      boto3
      botocore
      urllib3
    ];
    redis = [ redis ];
    memcached = [ python-memcached ];
    sqs = [
      boto3
      botocore
      urllib3
    ];
  };

  # Infinite recursion with celery
  doCheck = false;