summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/dramatiq-eager-broker/default.nix
blob: ae93a5c9535c44b8e7614cfc9446c4e76a84871d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{
  lib,
  buildPythonPackage,
  fetchFromGitea,
  uv-build,
  dramatiq,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "dramatiq-eager-broker";
  version = "0.3.0";

  pyproject = true;

  src = fetchFromGitea {
    domain = "codeberg.org";
    owner = "yaal";
    repo = "dramatiq-eager-broker";
    tag = version;
    hash = "sha256-tz4Gy31y5oaTHFAzb5L7bg0AhG1U/JKDySGloA7/A/8=";
  };

  build-system = [ uv-build ];

  dependencies = [ dramatiq ];

  nativeCheckInputs = [ pytestCheckHook ];

  meta = {
    description = "An eager broker for Dramatiq that executes tasks synchronously and immediately, without queuing";
    homepage = "https://codeberg.org/yaal/dramatiq-eager-broker";
    license = lib.licenses.mit;
    maintainers = [ lib.maintainers.erictapen ];
  };
}