nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 47 lines 889 B view raw
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}: 13 14buildPythonPackage rec { 15 pname = "django-ninja"; 16 version = "1.5.3"; 17 pyproject = true; 18 19 src = fetchFromGitHub { 20 owner = "vitalik"; 21 repo = "django-ninja"; 22 tag = "v${version}"; 23 hash = "sha256-TmdwxOy+YwzEp/LrRb7/AqUahlmEodZdmswvfqtD5PY="; 24 }; 25 26 build-system = [ flit-core ]; 27 28 dependencies = [ 29 django 30 pydantic 31 ]; 32 33 nativeCheckInputs = [ 34 psycopg2 35 pytest-asyncio 36 pytest-django 37 pytestCheckHook 38 ]; 39 40 meta = { 41 changelog = "https://github.com/vitalik/django-ninja/releases/tag/${src.tag}"; 42 description = "Web framework for building APIs with Django and Python type hints"; 43 homepage = "https://django-ninja.dev"; 44 license = lib.licenses.mit; 45 maintainers = [ ]; 46 }; 47}