@@ -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")