summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/django-postgres-partition/default.nix
blob: 0b8ce8fd7a9bf4c1720a9b31d952eb452dd450b3 (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
37
38
39
40
41
42
43
44
45
46
47
48
{
  lib,
  buildPythonPackage,
  fetchFromGitLab,
  setuptools,
  django,
  psycopg,
  python-dateutil,
  nix-update-script,
}:

buildPythonPackage rec {
  pname = "django-postgres-partition";
  version = "0.1.4";
  pyproject = true;

  src = fetchFromGitLab {
    owner = "burke-software";
    repo = "django-postgres-partition";
    tag = version;
    hash = "sha256-Wk+m75gO9iClN9/vXGBl27VcmqyE6c1xpQX+X1qcKuU=";
  };

  build-system = [ setuptools ];

  pythonRelaxDeps = [ "django" ];

  dependencies = [
    django
    psycopg
    python-dateutil
  ];

  # tests don't work yet, see https://gitlab.com/burke-software/django-postgres-partition/-/issues/4
  doCheck = false;

  pythonImportsCheck = [ "psql_partition" ];

  passthru.updateScript = nix-update-script { };

  meta = {
    description = "Partition support for django, based on django-postgres-extra";
    homepage = "https://gitlab.com/burke-software/django-postgres-partition";
    changelog = "https://gitlab.com/burke-software/django-postgres-partition/-/releases/${version}";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ defelo ];
  };
}