1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 setuptools,
6 django_5_2,
7 psycopg,
8 python-dateutil,
9}:
10
11buildPythonPackage rec {
12 pname = "django-postgres-partition";
13 version = "0.1.1";
14 pyproject = true;
15
16 src = fetchPypi {
17 inherit version;
18 pname = "django_postgres_partition";
19 hash = "sha256-KUrgnfUXWyRerW4dqtVZO9bu5jHYnHcVOIg97w695RU=";
20 };
21
22 build-system = [ setuptools ];
23
24 dependencies = [
25 django_5_2
26 psycopg
27 python-dateutil
28 ];
29
30 doCheck = false; # pypi version doesn't ship with tests
31
32 pythonImportsCheck = [ "psql_partition" ];
33
34 meta = {
35 description = "Partition support for django, based on django-postgres-extra";
36 homepage = "https://gitlab.com/burke-software/django-postgres-partition";
37 license = lib.licenses.mit;
38 maintainers = with lib.maintainers; [ defelo ];
39 };
40}