5ca88bfbb9
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
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.2.2";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "vitalik";
|
|
repo = "django-ninja";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-wD2ZizvMEY9oDQZTr4KzbNY5sStf7lCyPPJBoaa4trU=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|