~ruther/guix-local

74c6da3ff4c2d0f7f66221d7fa0cc0f6d5ffaf42 — Nicolas Graves 7 months ago 496caa6
gnu: Add python-crispy-bootstrap3.

* gnu/packages/django.scm (python-crispy-bootstrap3): New variable.

Change-Id: I7357f70a1e9a23b431aacf470afb86e534c778a7
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
1 files changed, 30 insertions(+), 0 deletions(-)

M gnu/packages/django.scm
M gnu/packages/django.scm => gnu/packages/django.scm +30 -0
@@ 139,6 139,36 @@ a system that allows you to easily communicate between processes, and separate
your project into different processes.")
    (license license:bsd-3)))

(define-public python-crispy-bootstrap3
  (package
    (name "python-crispy-bootstrap3")
    (version "2024.1")
    (source
     (origin
       (method git-fetch)
       (uri (git-reference
             (url "https://github.com/django-crispy-forms/crispy-bootstrap3")
             (commit version)))
       (file-name (git-file-name name version))
       (sha256
        (base32 "1ncf8hz3yf8h0asvyi1g54ds0glp46zfcr6sklhsynbqzmcqd463"))))
    (build-system pyproject-build-system)
    (arguments
     (list
      #:phases
      #~(modify-phases %standard-phases
          (add-before 'check 'pre-check
            (lambda _
              (setenv "PYTHONPATH" "."))))))
    (propagated-inputs (list python-django python-django-crispy-forms))
    (native-inputs (list python-pytest python-pytest-django python-setuptools))
    (home-page "https://github.com/django-crispy-forms/crispy-bootstrap3")
    (synopsis "Bootstrap3 template pack for django-crispy-forms")
    (description
     "This package provides a bootstrap3 template pack for
@code{python-django-crispy-forms}.")
    (license license:expat)))

(define-public python-django
  (package
    (name "python-django")