nixpkgs/pkgs/development/python-modules/django-pgpubsub/default.nix
Raito Bezarius 6a63a4ad8b pkgs/*: drop maintenanceship of various packages
I have effectively renounced on maintaining all these packages and I do
not plan to return them except if I'm forced to.

I am also fine with most of these packages being dropped for next
releases if no maintainer shows up.

Change-Id: I8d167c8029b6991181bd7a094af21c3313af2b51
Signed-off-by: Raito Bezarius <masterancpp@gmail.com>
2026-06-24 20:34:45 +02:00

47 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 = [ ];
};
}