[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
21/55: gnu: Add python-django-configurations.
From: |
guix-commits |
Subject: |
21/55: gnu: Add python-django-configurations. |
Date: |
Thu, 21 Sep 2023 13:31:35 -0400 (EDT) |
mbakke pushed a commit to branch master
in repository guix.
commit 10c11d2b6d8a2ed97acc7149cc4d71537c579253
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Sat Sep 16 16:34:41 2023 +0800
gnu: Add python-django-configurations.
* gnu/packages/django.scm (python-django-configurations): New variable.
---
gnu/packages/django.scm | 40 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 40 insertions(+)
diff --git a/gnu/packages/django.scm b/gnu/packages/django.scm
index b6f695b080..ca696abf19 100644
--- a/gnu/packages/django.scm
+++ b/gnu/packages/django.scm
@@ -209,6 +209,46 @@ to the @dfn{don't repeat yourself} (DRY) principle.")
with a @var{CACHE_URL} environment variable.")
(license license:expat)))
+(define-public python-django-configurations
+ (package
+ (name "python-django-configurations")
+ (version "2.4.1")
+ (source (origin
+ (method url-fetch)
+ (uri (pypi-uri "django-configurations" version))
+ (sha256
+ (base32
+ "11chll26iqqy5chyx62hya20cadk10nm2la7sch7pril70a5rhm6"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list #:phases
+ #~(modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ ;; Taken from tox.ini.
+ (setenv "DJANGO_SETTINGS_MODULE" "tests.settings.main")
+ (setenv "DJANGO_CONFIGURATION" "Test")
+ (setenv "PYTHONPATH"
+ (string-append ".:" (getenv "GUIX_PYTHONPATH")))
+ (invoke "django-cadmin" "test" "-v2")))))))
+ (propagated-inputs
+ (list python-django))
+ (native-inputs
+ (list python-dj-database-url
+ python-dj-email-url
+ python-dj-search-url
+ python-django-cache-url
+ python-setuptools-scm))
+ (home-page "https://django-configurations.readthedocs.io/")
+ (synopsis "Helper module for organizing Django settings")
+ (description
+ "@code{django-configurations} helps you organize the configuration of
+your Django project by providing glue code to bridge between Django'smodule
+based settings system and programming patterns like mixins, facades, factories
+and adapters that are useful for non-trivial configuration scenarios.")
+ (license license:bsd-3)))
+
(define-public python-django-extensions
(package
(name "python-django-extensions")
- branch master updated (ee7c9d2541 -> fdfafaa48c), guix-commits, 2023/09/21
- 03/55: gnu: python-certauth: Fix test failure with newer PyOpenSSL., guix-commits, 2023/09/21
- 01/55: gnu: Add python-jwcrypto., guix-commits, 2023/09/21
- 04/55: gnu: python-filelock: Update home page., guix-commits, 2023/09/21
- 05/55: gnu: python-deprecated: Remove unused inputs., guix-commits, 2023/09/21
- 06/55: gnu: Add python-a2wsgi., guix-commits, 2023/09/21
- 18/55: gnu: python-dj-database-url: Update to 2.1.0., guix-commits, 2023/09/21
- 08/55: gnu: Add python-tracerite., guix-commits, 2023/09/21
- 15/55: gnu: uwufetch: Avoid top-level package references., guix-commits, 2023/09/21
- 17/55: gnu: Add python-dj-email-url., guix-commits, 2023/09/21
- 21/55: gnu: Add python-django-configurations.,
guix-commits <=
- 23/55: gnu: python-django-picklefield: Update to 3.1.0., guix-commits, 2023/09/21
- 27/55: gnu: graphite-web: Update to 1.1.10., guix-commits, 2023/09/21
- 28/55: gnu: Remove python-django@2.2., guix-commits, 2023/09/21
- 29/55: gnu: python-flex: Update to 6.14.1., guix-commits, 2023/09/21
- 34/55: gnu: python-django@3.2: Update to 3.2.21., guix-commits, 2023/09/21
- 35/55: gnu: python-asgiref: Update to 3.7.2., guix-commits, 2023/09/21
- 40/55: gnu: python-distlib: Don't reference the implicit bash input., guix-commits, 2023/09/21
- 52/55: gnu: python-libnacl: Update to 2.1.0., guix-commits, 2023/09/21
- 44/55: gnu: python-uvicorn: Update to 0.23.2., guix-commits, 2023/09/21
- 49/55: gnu: python-incremental: Update to 22.10.0., guix-commits, 2023/09/21