1{
2 lib,
3 fetchFromGitHub,
4 buildPythonPackage,
5 django,
6 django-pgtrigger,
7 poetry-core,
8}:
9
10buildPythonPackage rec {
11 pname = "django-pghistory";
12 version = "3.8.2";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "Opus10";
17 repo = "django-pghistory";
18 tag = version;
19 hash = "sha256-zQqa4rBhjt2+kaCT4PvGXyTJ63JR3YM50GBQkqnWUKE=";
20 };
21
22 build-system = [
23 poetry-core
24 ];
25
26 dependencies = [
27 django
28 django-pgtrigger
29 ];
30
31 pythonImportsCheck = [ "pghistory" ];
32
33 meta = {
34 changelog = "https://github.com/Opus10/django-pghistory/releases/tag/${src.tag}";
35 description = "History tracking for Django and Postgres";
36 homepage = "https://django-pghistory.readthedocs.io";
37 maintainers = with lib.maintainers; [ pyrox0 ];
38 license = lib.licenses.bsd3;
39 };
40}