From aa171ffcd40aee830e06b045c44b2ed51f413f95 Mon Sep 17 00:00:00 2001 From: "W. Kosior" Date: Sat, 13 Jul 2024 12:03:21 +0200 Subject: gnu: Add python-django-timezone-field. * gnu/packages/django.scm (python-django-timezone-field): New variable. Change-Id: I3f500a7a088f0311df4962391bdc692d710176e4 --- gnu/packages/django.scm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/gnu/packages/django.scm b/gnu/packages/django.scm index 4404c8368d..2be815df9b 100644 --- a/gnu/packages/django.scm +++ b/gnu/packages/django.scm @@ -10,6 +10,9 @@ ;;; Copyright © 2021 Maxim Cournoyer ;;; Copyright © 2021 Luis Felipe López Acevedo ;;; Copyright © 2022 Pradana Aumars +;;; Copyright © 2024 Wojtek Kosior +;;; Additions and modifications by Wojtek Kosior are additionally +;;; dual-licensed under the Creative Commons Zero v1.0. ;;; ;;; This file is part of GNU Guix. ;;; @@ -1407,6 +1410,35 @@ to ElasticSearch.") @code{CIDR} fields for use in Django projects.") (license license:bsd-3))) +(define-public python-django-timezone-field + (package + (name "python-django-timezone-field") + (version "6.1.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/mfogel/django-timezone-field") + (commit version))) + (file-name (string-append name "-" version)) + (sha256 + (base32 + "0hsl8fi6rv4yz973b7m7j8id0prswz3gxljjqclswpz9q35rc5mx")))) + (build-system pyproject-build-system) + (arguments + ;; Some test dependencies are not packaged yet. + (list #:tests? #f)) + (propagated-inputs (list python-django)) + (native-inputs (list python-poetry-core python-pytest-django)) + (home-page "https://pypi.org/project/django-timezone-field/") + (synopsis + "A Django app providing DB, form, and REST framework fields for zoneinfo +and pytz timezone objects.") + (description + "This package provides a Django app providing DB, form, and REST +framework fields for zoneinfo and pytz timezone objects.") + (license license:bsd-2))) + (define-public python-django-url-filter (package (name "python-django-url-filter") -- cgit v1.2.3