1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 poetry-core,
6 django,
7 psycopg2,
8}:
9
10buildPythonPackage rec {
11 pname = "django-pgtrigger";
12 version = "4.15.4";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "AmbitionEng";
17 repo = "django-pgtrigger";
18 tag = version;
19 hash = "sha256-3v/YWcWZAiEH9EtxC901kEqja0TTzbNSTkjoH+cEUN4=";
20 };
21
22 build-system = [ poetry-core ];
23
24 dependencies = [
25 django
26 psycopg2
27 ];
28
29 pythonImportsCheck = [ "pgtrigger" ];
30
31 meta = {
32 description = "Write Postgres triggers for your Django models";
33 homepage = "https://github.com/Opus10/django-pgtrigger";
34 changelog = "https://github.com/Opus10/django-pgtrigger/blob/${src.tag}/CHANGELOG.md";
35 license = lib.licenses.bsd3;
36 maintainers = with lib.maintainers; [
37 raitobezarius
38 pyrox0
39 ];
40 };
41}