mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-11-10 09:43:30 +01:00
49 lines
1.1 KiB
Nix
49 lines
1.1 KiB
Nix
{
|
|
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 ];
|
|
};
|
|
}
|