1{
2 lib,
3 fetchFromGitHub,
4 buildPythonPackage,
5 setuptools,
6 celery,
7}:
8
9buildPythonPackage rec {
10 pname = "celery-batches";
11 version = "0.10";
12 pyproject = true;
13
14 src = fetchFromGitHub {
15 owner = "clokep";
16 repo = "celery-batches";
17 tag = "v${version}";
18 hash = "sha256-9RpM2aC3F88fJBoW8FDd6IN8KlZN+6ESrZFak9j0eNk=";
19 };
20
21 build-system = [ setuptools ];
22
23 dependencies = [ celery ];
24
25 # requires a running celery
26 doCheck = false;
27
28 pythonImportsCheck = [ "celery_batches" ];
29
30 meta = {
31 description = "Allows processing of multiple Celery task requests together";
32 homepage = "https://github.com/clokep/celery-batches";
33 changelog = "https://github.com/clokep/celery-batches/blob/${src.tag}/CHANGELOG.rst";
34 license = lib.licenses.bsd3;
35 maintainers = with lib.maintainers; [ defelo ];
36 };
37}