Merge pull request #255088 from elohmeier/django-ninja
python3Packages.django-ninja: init at 0.22.2
This commit is contained in:
commit
8b5ab8341e
45
pkgs/development/python-modules/django-ninja/default.nix
Normal file
45
pkgs/development/python-modules/django-ninja/default.nix
Normal file
@ -0,0 +1,45 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, django
|
||||
, fetchFromGitHub
|
||||
, flit-core
|
||||
, psycopg2
|
||||
, pydantic
|
||||
, pytest-asyncio
|
||||
, pytest-django
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "django-ninja";
|
||||
version = "0.22.2";
|
||||
format = "pyproject";
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "vitalik";
|
||||
repo = "django-ninja";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-oeisurp9seSn3X/5jFF9DMm9nU6uDYIU1b6/J3o2be0=";
|
||||
};
|
||||
|
||||
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.rest-framework.com/";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ elohmeier ];
|
||||
};
|
||||
}
|
@ -2966,6 +2966,8 @@ self: super: with self; {
|
||||
|
||||
django-mysql = callPackage ../development/python-modules/django-mysql { };
|
||||
|
||||
django-ninja = callPackage ../development/python-modules/django-ninja { };
|
||||
|
||||
django-nose = callPackage ../development/python-modules/django-nose { };
|
||||
|
||||
django-oauth-toolkit = callPackage ../development/python-modules/django-oauth-toolkit { };
|
||||
|
Loading…
Reference in New Issue
Block a user