1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 celery,
7}:
8
9buildPythonPackage rec {
10 pname = "tenant-schemas-celery";
11 version = "4.0.3";
12 pyproject = true;
13
14 src = fetchFromGitHub {
15 owner = "maciej-gol";
16 repo = "tenant-schemas-celery";
17 tag = version;
18 hash = "sha256-HLZQHwGCYYxU6LYvPoVhGeN8t5wqGVaXU44/qazf2aM=";
19 };
20
21 build-system = [ setuptools ];
22
23 dependencies = [ celery ];
24
25 pythonImportsCheck = [ "tenant_schemas_celery" ];
26
27 meta = {
28 description = "Celery application implementation that allows celery tasks to cooperate with multi-tenancy provided by django-tenant-schemas and django-tenants packages";
29 homepage = "https://github.com/maciej-gol/tenant-schemas-celery";
30 changelog = "https://github.com/maciej-gol/tenant-schemas-celery/releases/tag/${src.tag}";
31 license = lib.licenses.mit;
32 maintainers = with lib.maintainers; [ jopejoe1 ];
33 };
34}