1{
2 lib,
3 buildPythonPackage,
4 django,
5 fetchFromGitHub,
6 flit-core,
7 psycopg2,
8 pydantic,
9 pytest-asyncio,
10 pytest-django,
11 pytestCheckHook,
12 pythonOlder,
13}:
14
15buildPythonPackage rec {
16 pname = "django-ninja";
17 version = "1.4.3t";
18 pyproject = true;
19
20 disabled = pythonOlder "3.7";
21
22 src = fetchFromGitHub {
23 owner = "vitalik";
24 repo = "django-ninja";
25 tag = "v${version}";
26 hash = "sha256-IiOj2fBuClHyIdn/r3XxKwO+DyrgahagUKrxp+YKZ4E=";
27 };
28
29 build-system = [ flit-core ];
30
31 dependencies = [
32 django
33 pydantic
34 ];
35
36 nativeCheckInputs = [
37 psycopg2
38 pytest-asyncio
39 pytest-django
40 pytestCheckHook
41 ];
42
43 meta = with lib; {
44 changelog = "https://github.com/vitalik/django-ninja/releases/tag/${src.tag}";
45 description = "Web framework for building APIs with Django and Python type hints";
46 homepage = "https://django-ninja.dev";
47 license = licenses.mit;
48 maintainers = with maintainers; [ ];
49 };
50}