python3Packages.django-pghistory: init at 3.7.0 (#421616)

This commit is contained in:
Aleksana
2025-07-05 23:09:45 +08:00
committed by GitHub
3 changed files with 85 additions and 0 deletions
@@ -0,0 +1,40 @@
{
lib,
fetchFromGitHub,
buildPythonPackage,
django,
django-pgtrigger,
poetry-core,
}:
buildPythonPackage rec {
pname = "django-pghistory";
version = "3.7.0";
pyproject = true;
src = fetchFromGitHub {
owner = "Opus10";
repo = "django-pghistory";
tag = "${version}";
hash = "sha256-HXnljqbLNnKqueDNDTEhKHNkm5FcQGsA54mdnk3rYNI=";
};
build-system = [
poetry-core
];
dependencies = [
django
django-pgtrigger
];
pythonImportsCheck = [ "pghistory" ];
meta = {
changelog = "https://github.com/Opus10/django-pghistory/releases/tag/${version}";
description = "History tracking for Django and Postgres";
homepage = "https://django-pghistory.readthedocs.io";
maintainers = with lib.maintainers; [ pyrox0 ];
license = lib.licenses.bsd3;
};
}
@@ -0,0 +1,41 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
django,
psycopg2,
}:
buildPythonPackage rec {
pname = "django-pgtrigger";
version = "4.15.3";
pyproject = true;
src = fetchFromGitHub {
owner = "AmbitionEng";
repo = "django-pgtrigger";
tag = version;
hash = "sha256-aFjg4rCWM1F2O1zDBVo2zN1LhOPN+UyIZphuTHMAjhQ=";
};
build-system = [ poetry-core ];
dependencies = [
django
psycopg2
];
pythonImportsCheck = [ "pgtrigger" ];
meta = {
description = "Write Postgres triggers for your Django models";
homepage = "https://github.com/Opus10/django-pgtrigger";
changelog = "https://github.com/Opus10/django-pgtrigger/blob/${src.rev}/CHANGELOG.md";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [
raitobezarius
pyrox0
];
};
}
+4
View File
@@ -3931,10 +3931,14 @@ self: super: with self; {
django-pgactivity = callPackage ../development/python-modules/django-pgactivity { };
django-pghistory = callPackage ../development/python-modules/django-pghistory { };
django-pglock = callPackage ../development/python-modules/django-pglock { };
django-pglocks = callPackage ../development/python-modules/django-pglocks { };
django-pgtrigger = callPackage ../development/python-modules/django-pgtrigger { };
django-phonenumber-field = callPackage ../development/python-modules/django-phonenumber-field { };
django-picklefield = callPackage ../development/python-modules/django-picklefield { };