aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorMarius Bakke <marius@gnu.org>2023-09-16 16:47:56 +0800
committerMarius Bakke <marius@gnu.org>2023-09-22 01:29:18 +0800
commit75fe559afc75fe33e35d44129f67663f6361e530 (patch)
treea50e7cc0ececc4b9b53456e9d238ab56b1387c7d /gnu/packages
parent10c11d2b6d8a2ed97acc7149cc4d71537c579253 (diff)
downloadguix-75fe559afc75fe33e35d44129f67663f6361e530.tar.gz
guix-75fe559afc75fe33e35d44129f67663f6361e530.zip
gnu: Add python-django-ninja.
* gnu/packages/django.scm (python-django-ninja): New variable.
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/django.scm30
1 files changed, 30 insertions, 0 deletions
diff --git a/gnu/packages/django.scm b/gnu/packages/django.scm
index ca696abf19..145860ec40 100644
--- a/gnu/packages/django.scm
+++ b/gnu/packages/django.scm
@@ -897,6 +897,36 @@ used to attach comments to any model, so you can use it for comments on blog
entries, photos, book chapters, or anything else.")
(license license:bsd-3)))
+(define-public python-django-ninja
+ (package
+ (name "python-django-ninja")
+ (version "0.22.2")
+ (source (origin
+ (method url-fetch)
+ (uri (pypi-uri "django_ninja" version))
+ (sha256
+ (base32
+ "0b19w7nvw7c3z19dbza49m24c3384j59w2xcr5l6jshxazkvsgli"))))
+ (build-system pyproject-build-system)
+ (arguments
+ ;; FIXME: How to configure this test properly?
+ (list #:test-flags #~'("-k" "not test_improperly_configured")))
+ (propagated-inputs
+ (list python-django python-pydantic))
+ (native-inputs
+ (list python-flit-core
+ python-psycopg2
+ python-pytest
+ python-pytest-asyncio
+ python-pytest-django))
+ (home-page "https://django-ninja.rest-framework.com")
+ (synopsis "REST framework for Django")
+ (description
+ "Django Ninja is a web framework for building APIs with Django
+and Python type hints. It is designed to be fast and easy to use thanks
+to asyncio and Pydantic.")
+ (license license:expat)))
+
(define-public python-django-pipeline
(package
(name "python-django-pipeline")