themadbit 1af6b1abf4 python3Packages.django-pgpubsub: init at 1.3.1
Signed-off-by: themadbit <marktanui75@gmail.com>
2025-07-06 12:34:44 +03:00

48 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
nix-update-script,
poetry-core,
django,
django-pgtrigger,
}:
buildPythonPackage rec {
pname = "django-pgpubsub";
version = "1.3.1";
pyproject = true;
src = fetchFromGitHub {
owner = "PaulGilmartin";
repo = "django-pgpubsub";
tag = version;
hash = "sha256-Gl6NfBaoj3WKLHwJElbb27CYVQ83s3f86NUOZE7lHCk=";
};
passthru.updateScript = nix-update-script { };
postPatch = ''
substituteInPlace pyproject.toml \
--replace 'poetry.masonry.api' 'poetry.core.masonry.api' \
--replace 'poetry>=1.1.13' 'poetry-core>=1.0.0' \
'';
build-system = [ poetry-core ];
dependencies = [
django
django-pgtrigger
];
pythonImportsCheck = [ "pgpubsub" ];
meta = {
description = "Lightweight background tasks using Django Channels and PostgreSQL NOTIFY/LISTEN";
homepage = "https://github.com/PaulGilmartin/django-pgpubsub";
changelog = "https://github.com/PaulGilmartin/django-pgpubsub/blob/${src.rev}/CHANGELOG.md";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ raitobezarius ];
};
}