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