Files
nixpkgs/pkgs/development/python-modules/django-ninja/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

51 lines
938 B
Nix

{
lib,
buildPythonPackage,
django,
fetchFromGitHub,
flit-core,
psycopg2,
pydantic,
pytest-asyncio,
pytest-django,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
pname = "django-ninja";
version = "1.4.3t";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "vitalik";
repo = "django-ninja";
tag = "v${version}";
hash = "sha256-IiOj2fBuClHyIdn/r3XxKwO+DyrgahagUKrxp+YKZ4E=";
};
build-system = [ flit-core ];
dependencies = [
django
pydantic
];
nativeCheckInputs = [
psycopg2
pytest-asyncio
pytest-django
pytestCheckHook
];
meta = {
changelog = "https://github.com/vitalik/django-ninja/releases/tag/${src.tag}";
description = "Web framework for building APIs with Django and Python type hints";
homepage = "https://django-ninja.dev";
license = lib.licenses.mit;
maintainers = [ ];
};
}