python3Packages.django-pgpubsub: init at 1.3.1 (#422315)
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
{
|
||||
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 ];
|
||||
};
|
||||
}
|
||||
@@ -3939,6 +3939,8 @@ self: super: with self; {
|
||||
|
||||
django-pglocks = callPackage ../development/python-modules/django-pglocks { };
|
||||
|
||||
django-pgpubsub = callPackage ../development/python-modules/django-pgpubsub { };
|
||||
|
||||
django-pgtrigger = callPackage ../development/python-modules/django-pgtrigger { };
|
||||
|
||||
django-phonenumber-field = callPackage ../development/python-modules/django-phonenumber-field { };
|
||||
|
||||
Reference in New Issue
Block a user