diff options
| author | Raghav Gururajan <rg@raghavgururajan.name> | 2021-09-11 17:51:16 -0400 |
|---|---|---|
| committer | Raghav Gururajan <rg@raghavgururajan.name> | 2021-09-11 19:59:17 -0400 |
| commit | ff64cba2cc5a029ade92644f99547f47ddf7d9c4 (patch) | |
| tree | 3f7f30c80cbd06cb98d6743aaa0088dc4839cf3c | |
| parent | 73f68c1a45bbdbd64633d5cc05f5dcf4080d581a (diff) | |
gnu: Add python-django-localflavor.
* gnu/packages/django.scm (python-django-localflavor): New variable.
Co-authored-by: jgart <jgart@dismail.de>
| -rw-r--r-- | gnu/packages/django.scm | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/gnu/packages/django.scm b/gnu/packages/django.scm index dd48e0553ad..f8aae1e33f0 100644 --- a/gnu/packages/django.scm +++ b/gnu/packages/django.scm | |||
| @@ -33,6 +33,7 @@ | |||
| 33 | #:use-module (gnu packages base) | 33 | #:use-module (gnu packages base) |
| 34 | #:use-module (gnu packages databases) | 34 | #:use-module (gnu packages databases) |
| 35 | #:use-module (gnu packages check) | 35 | #:use-module (gnu packages check) |
| 36 | #:use-module (gnu packages finance) | ||
| 36 | #:use-module (gnu packages geo) | 37 | #:use-module (gnu packages geo) |
| 37 | #:use-module (gnu packages openldap) | 38 | #:use-module (gnu packages openldap) |
| 38 | #:use-module (gnu packages python) | 39 | #:use-module (gnu packages python) |
| @@ -194,6 +195,42 @@ to the @dfn{don't repeat yourself} (DRY) principle.") | |||
| 194 | commands, additional database fields and admin extensions.") | 195 | commands, additional database fields and admin extensions.") |
| 195 | (license license:expat))) | 196 | (license license:expat))) |
| 196 | 197 | ||
| 198 | (define-public python-django-localflavor | ||
| 199 | (package | ||
| 200 | (name "python-django-localflavor") | ||
| 201 | (version "3.1") | ||
| 202 | (source | ||
| 203 | (origin | ||
| 204 | (method url-fetch) | ||
| 205 | (uri (pypi-uri "django-localflavor" version)) | ||
| 206 | (sha256 | ||
| 207 | (base32 "0i1s0ijfd9rv2cp5x174jcyjpwn7fyg7s1wpbvlwm96bpdvs6bxc")))) | ||
| 208 | (build-system python-build-system) | ||
| 209 | (arguments | ||
| 210 | `(#:phases | ||
| 211 | (modify-phases %standard-phases | ||
| 212 | (replace 'check | ||
| 213 | (lambda* (#:key inputs outputs tests? #:allow-other-keys) | ||
| 214 | (when tests? | ||
| 215 | (add-installed-pythonpath inputs outputs) | ||
| 216 | (setenv "PYTHONPATH" | ||
| 217 | (string-append ".:" | ||
| 218 | (getenv "PYTHONPATH"))) | ||
| 219 | (invoke "invoke" "test"))))))) | ||
| 220 | (native-inputs | ||
| 221 | `(("python-coverage" ,python-coverage) | ||
| 222 | ("python-invoke" ,python-invoke) | ||
| 223 | ("python-pytest-django" ,python-pytest-django) | ||
| 224 | ("which" ,which))) | ||
| 225 | (propagated-inputs | ||
| 226 | `(("python-django" ,python-django) | ||
| 227 | ("python-stdnum" ,python-stdnum))) | ||
| 228 | (home-page "https://django-localflavor.readthedocs.io/en/latest/") | ||
| 229 | (synopsis "Country-specific Django helpers") | ||
| 230 | (description "Django-LocalFlavor is a collection of assorted pieces of code | ||
| 231 | that are useful for particular countries or cultures.") | ||
| 232 | (license license:bsd-3))) | ||
| 233 | |||
| 197 | (define-public python-django-simple-math-captcha | 234 | (define-public python-django-simple-math-captcha |
| 198 | (package | 235 | (package |
| 199 | (name "python-django-simple-math-captcha") | 236 | (name "python-django-simple-math-captcha") |
