fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
50 lines
996 B
Nix
50 lines
996 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
django,
|
|
fetchFromGitHub,
|
|
flit-core,
|
|
psycopg2,
|
|
pydantic,
|
|
pytest-asyncio,
|
|
pytest-django,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "django-ninja";
|
|
version = "1.1.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "vitalik";
|
|
repo = "django-ninja";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-pvpYDuUZi0Gr5RbBWc91LzgmRLhihrhsKaD/AWN5+Bo=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
django
|
|
pydantic
|
|
];
|
|
|
|
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";
|
|
homepage = "https://django-ninja.dev";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ elohmeier ];
|
|
};
|
|
}
|