Files
nixpkgs/pkgs/development/python-modules/django-ninja/default.nix
Wolfgang Walther c283f32d29 treewide: remove unused with
Auto-fixed by nixf-diagnose.
2025-10-05 10:50:41 +02:00

51 lines
944 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 = with lib; {
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 = licenses.mit;
maintainers = [ ];
};
}