39 lines
818 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
django,
psycopg,
}:
buildPythonPackage rec {
pname = "django-tenants";
version = "3.7.8";
pyproject = true;
src = fetchFromGitHub {
owner = "django-tenants";
repo = "django-tenants";
tag = "v${version}";
hash = "sha256-WC9NWykSnAD7ywjMGuhNdlasGhrnZJfoh/3wJ+2BF2E=";
};
build-system = [ setuptools ];
dependencies = [
django
psycopg
];
pythonImportsCheck = [ "django_tenants" ];
meta = {
description = "Django tenants using PostgreSQL Schemas";
homepage = "https://github.com/django-tenants/django-tenants";
changelog = "https://github.com/django-tenants/django-tenants/releases/tag/${src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ jopejoe1 ];
};
}