41 lines
819 B
Nix

{
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;
};
}