2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
django,
|
|
|
|
fetchFromGitHub,
|
|
|
|
flit-core,
|
|
|
|
psycopg2,
|
|
|
|
pydantic,
|
|
|
|
pytest-asyncio,
|
|
|
|
pytest-django,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
2023-10-09 19:29:22 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "django-ninja";
|
2024-07-31 10:19:44 +00:00
|
|
|
version = "1.2.2";
|
2024-01-13 08:15:51 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "vitalik";
|
|
|
|
repo = "django-ninja";
|
2024-01-25 14:12:00 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-07-31 10:19:44 +00:00
|
|
|
hash = "sha256-wD2ZizvMEY9oDQZTr4KzbNY5sStf7lCyPPJBoaa4trU=";
|
2023-10-09 19:29:22 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
django
|
|
|
|
pydantic
|
|
|
|
];
|
2023-10-09 19:29:22 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ flit-core ];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
psycopg2
|
|
|
|
pytest-asyncio
|
|
|
|
pytest-django
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
changelog = "https://github.com/vitalik/django-ninja/releases/tag/v${version}";
|
|
|
|
description = "Web framework for building APIs with Django and Python type hints";
|
2024-01-13 08:15:51 +00:00
|
|
|
homepage = "https://django-ninja.dev";
|
2023-10-09 19:29:22 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ elohmeier ];
|
|
|
|
};
|
|
|
|
}
|