[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#57094] [PATCH 6/9] gnu: Add python-django-pattern-library.
From: |
Nicolas Graves |
Subject: |
[bug#57094] [PATCH 6/9] gnu: Add python-django-pattern-library. |
Date: |
Wed, 10 Aug 2022 00:43:30 +0200 |
* gnu/packages/django.scm (python-django-pattern-library): New variable.
---
gnu/packages/django.scm | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
diff --git a/gnu/packages/django.scm b/gnu/packages/django.scm
index 4b2c255ee7..4315f40cc5 100644
--- a/gnu/packages/django.scm
+++ b/gnu/packages/django.scm
@@ -785,6 +785,39 @@ (define-public python-dj-database-url
conn_max_age argument to easily enable Django’s connection pool.")
(license license:bsd-2)))
+(define-public python-django-pattern-library
+ (package
+ (name "python-django-pattern-library")
+ (version "1.0.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "django-pattern-library" version))
+ (sha256
+ (base32 "1s2s1sgrdrrizf2zmgijjxhv5q4pislggb34v2v4c27nd9ha981x"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key tests? inputs #:allow-other-keys)
+ (if tests?
+ (lambda _
+ (setenv "PYTHONPATH"
+ (string-append ".:" (getenv "GUIX_PYTHONPATH")))
+ (setenv "DJANGO_SETTINGS_MODULE" "treebeard.tests.settings")
+ (substitute* "setup.py" ((".*pythonpath.*") ""))
+ (invoke "pytest" "-vv"))
+ (format #t "test suite not run~%")))))))
+ (propagated-inputs (list python-django python-markdown python-pyyaml))
+ (home-page "https://github.com/torchbox/django-pattern-library")
+ (synopsis
+ "Build pattern libraries for your Django projects")
+ (description
+ "This package provides a module for Django that allows to build pattern
libraries
+for your projects.")
+ (license license:bsd-3)))
+
(define-public python-django-permissionedforms
(package
(name "python-django-permissionedforms")
--
2.37.1
- [bug#57094] Updating wagtail to 3.0., Nicolas Graves, 2022/08/09
- [bug#57094] [PATCH 1/9] gnu: python-django-modelcluster: Update to 6.0., Nicolas Graves, 2022/08/09
- [bug#57094] [PATCH 2/9] gnu: Add python-django-permissionedforms., Nicolas Graves, 2022/08/09
- [bug#57094] [PATCH 3/9] gnu: Add python-curlylint., Nicolas Graves, 2022/08/09
- [bug#57094] [PATCH 4/9] gnu: Add python-flake8-assertive., Nicolas Graves, 2022/08/09
- [bug#57094] [PATCH 6/9] gnu: Add python-django-pattern-library.,
Nicolas Graves <=
- [bug#57094] [PATCH 5/9] gnu: Add python-flake8-comprehensions., Nicolas Graves, 2022/08/09
- [bug#57094] [PATCH 8/9] gnu: Add python-djhtml., Nicolas Graves, 2022/08/09
- [bug#57094] [PATCH 9/9] gnu: python-wagtail: Update to 3.0.1., Nicolas Graves, 2022/08/09
- [bug#57094] [PATCH 7/9] gnu: Add python-nox., Nicolas Graves, 2022/08/09