1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitLab, 5 setuptools, 6 django, 7 psycopg, 8 python-dateutil, 9 nix-update-script, 10}: 11 12buildPythonPackage rec { 13 pname = "django-postgres-partition"; 14 version = "0.1.4"; 15 pyproject = true; 16 17 src = fetchFromGitLab { 18 owner = "burke-software"; 19 repo = "django-postgres-partition"; 20 tag = version; 21 hash = "sha256-Wk+m75gO9iClN9/vXGBl27VcmqyE6c1xpQX+X1qcKuU="; 22 }; 23 24 build-system = [ setuptools ]; 25 26 pythonRelaxDeps = [ "django" ]; 27 28 dependencies = [ 29 django 30 psycopg 31 python-dateutil 32 ]; 33 34 # tests don't work yet, see https://gitlab.com/burke-software/django-postgres-partition/-/issues/4 35 doCheck = false; 36 37 pythonImportsCheck = [ "psql_partition" ]; 38 39 passthru.updateScript = nix-update-script { }; 40 41 meta = { 42 description = "Partition support for django, based on django-postgres-extra"; 43 homepage = "https://gitlab.com/burke-software/django-postgres-partition"; 44 changelog = "https://gitlab.com/burke-software/django-postgres-partition/-/releases/${version}"; 45 license = lib.licenses.mit; 46 maintainers = with lib.maintainers; [ defelo ]; 47 }; 48}