[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#55474] [PATCH v4 14/19] gnu: Add python-django-permissionedforms.
From: |
Nicolas Graves |
Subject: |
[bug#55474] [PATCH v4 14/19] gnu: Add python-django-permissionedforms. |
Date: |
Mon, 5 Jun 2023 18:25:09 +0200 |
* gnu/packages/django.scm (python-django-permissionedforms): New variable.
---
gnu/packages/django.scm | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
diff --git a/gnu/packages/django.scm b/gnu/packages/django.scm
index 54aabcd0a3..c379b8cca9 100644
--- a/gnu/packages/django.scm
+++ b/gnu/packages/django.scm
@@ -777,6 +777,40 @@ (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-permissionedforms
+ (package
+ (name "python-django-permissionedforms")
+ (version "0.1")
+ ;; tests are not packaged in pypi
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/wagtail/django-permissionedforms")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0dscl238yi4xyd4nz2cxr5kikyalqj5drmk935llal3rd0dcy30d"))))
+ (build-system pyproject-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key tests? inputs #:allow-other-keys)
+ (if tests?
+ (invoke "python" "runtests.py")
+ (format #t "test suite not run~%")))))))
+ (propagated-inputs (list python-django))
+ (native-inputs (list python-django-modelcluster))
+ (home-page "https://github.com/wagtail/django-permissionedforms")
+ (synopsis
+ "Create forms that vary according to user permissions in Django")
+ (description
+ "This package provides a Django extension for creating forms that vary
+according to user permissions.")
+ (license license:bsd-3)))
+
(define-public python-django-picklefield
(package
(name "python-django-picklefield")
--
2.40.1
- [bug#55474] [PATCH v4 02/19] gnu: python-django-filter: Update to 22.1., (continued)
- [bug#55474] [PATCH v4 02/19] gnu: python-django-filter: Update to 22.1., Nicolas Graves, 2023/06/05
- [bug#55474] [PATCH v4 05/19] gnu: Add python-parsy., Nicolas Graves, 2023/06/05
- [bug#55474] [PATCH v4 06/19] gnu: Add python-jinjalint., Nicolas Graves, 2023/06/05
- [bug#55474] [PATCH v4 11/19] gnu: Add python-l18n., Nicolas Graves, 2023/06/05
- [bug#55474] [PATCH v4 08/19] gnu: Add python-django-request., Nicolas Graves, 2023/06/05
- [bug#55474] [PATCH v4 09/19] gnu: Add python-django-environ., Nicolas Graves, 2023/06/05
- [bug#55474] [PATCH v4 10/19] gnu: Add python-draftjs-exporter., Nicolas Graves, 2023/06/05
- [bug#55474] [PATCH v4 12/19] gnu: Add python-anyascii., Nicolas Graves, 2023/06/05
- [bug#55474] [PATCH v4 13/19] gnu: Add python-telepath., Nicolas Graves, 2023/06/05
- [bug#55474] [PATCH v4 15/19] gnu: python-openpyxl: Update to 3.1.2., Nicolas Graves, 2023/06/05
- [bug#55474] [PATCH v4 14/19] gnu: Add python-django-permissionedforms.,
Nicolas Graves <=
- [bug#55474] [PATCH v4 18/19] gnu: Add python-wagtail-factories., Nicolas Graves, 2023/06/05
- [bug#55474] [PATCH v4 17/19] gnu: Add python-wagtail., Nicolas Graves, 2023/06/05
- [bug#55474] [PATCH v4 16/19] gnu: python-django-4.0: Update to 4.0.9., Nicolas Graves, 2023/06/05
- [bug#55474] [PATCH v4 19/19] gnu: Add python-wagtail-localize., Nicolas Graves, 2023/06/05